Postgres 10, changing user by "set role {user};" doesn't use that users "default_transaction_isolation"

Started by Lacey, Nathanover 7 years ago3 messagesbugs
Jump to latest
#1Lacey, Nathan
nlacey@novetta.com

Steps to duplicate

ALTER USER {user} SET default_transaction_isolation TO 'repeatable read';

psql -U {user}
SHOW default_transaction_isolation;
with correctly show 'repeatable read'

psql (default with postgres)
set role {user};
SHOW default_transaction_isolation;
will incorrectly show postgres's value?
'read committed'

Thanks for the Awesome work.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Lacey, Nathan (#1)
Re: Postgres 10, changing user by "set role {user};" doesn't use that users "default_transaction_isolation"

On Tue, Jan 15, 2019 at 11:49 AM Lacey, Nathan <nlacey@novetta.com> wrote:

ALTER USER {user} SET default_transaction_isolation TO 'repeatable read';

"SET ROLE does not process session variables as specified by the
role's ALTER ROLE settings; this only happens during login."

https://www.postgresql.org/docs/11/sql-set-role.html

David J.

#3Lacey, Nathan
nlacey@novetta.com
In reply to: David G. Johnston (#2)
Re: Postgres 10, changing user by "set role {user};" doesn't use that users "default_transaction_isolation"

ok, thanks
sorry for wasting your time.

On Tue, Jan 15, 2019 at 1:53 PM David G. Johnston <
david.g.johnston@gmail.com> wrote:

Show quoted text

On Tue, Jan 15, 2019 at 11:49 AM Lacey, Nathan <nlacey@novetta.com> wrote:

ALTER USER {user} SET default_transaction_isolation TO 'repeatable read';

"SET ROLE does not process session variables as specified by the
role's ALTER ROLE settings; this only happens during login."

https://www.postgresql.org/docs/11/sql-set-role.html

David J.