On 31/05/2016 17:23, Melvin Davidson
wrote:
Actually, you do not need to SWITCH, you just need
permission to change to path and gain access to all user2
privs, which is exactly what SET ROLE user2 does.
There is no need for a password, since user1 is already
connected to the DB. Any superuser can give the GRANT ROLE to
any other user.
Still, PgSQL logs report the original user everywhere. Not useful
for auditing, debugging, etc
That being said, IMHO, I believe having a separate schema for
every user is poor database design
I agree about this, there are much better ways to utilize schemata.
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
|