Re: Reverting SET SESSION AUTHORIZATION command - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Reverting SET SESSION AUTHORIZATION command
Date
Msg-id Pine.LNX.4.30.0202241824310.686-100000@peter.localdomain
Whole thread Raw
In response to Reverting SET SESSION AUTHORIZATION command  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Reverting SET SESSION AUTHORIZATION command
List pgsql-hackers
Tom Lane writes:

> The syntax that comes to mind offhand is
>     SET SESSION AUTHORIZATION DEFAULT;
> but perhaps someone has a better idea.

My first thought had been RESET SESSION ... but both are fine, and they're
equivalent for all the other SET commands.

> BTW, I think it's well past time to make pg_dump use SET SESSION
> AUTHORIZATION by default, or even always, instead of \connect commands.

Well, the tradeoff is "restoring user has to be superuser" vs "restoring
user has to know everyone's authentication secrets".  The former is
obviously more likely.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Reverting SET SESSION AUTHORIZATION command
Next
From: Tom Lane
Date:
Subject: Re: Reverting SET SESSION AUTHORIZATION command