Re: "is_superuser" parameter creates inconsistencies - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "is_superuser" parameter creates inconsistencies
Date
Msg-id 9196.1059402505@sss.pgh.pa.us
Whole thread Raw
In response to "is_superuser" parameter creates inconsistencies  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: "is_superuser" parameter creates inconsistencies  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: "is_superuser" parameter creates inconsistencies  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Presumably, the "is_superuser" parameter was intended to make the updating
> of psql's prompt more accurate when SET SESSION AUTHORIZATION is used.
> However, if the prompt is customized to include the user name (%n), then
> the prompt changes to reflect the real superuser status, but does not
> change the user name.  I guess we need to pass "session_user" as well.

Seems reasonable.  IIRC the only addition needed to the server code is
to set a flag in the variable's GUC entry.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error code mixup?
Next
From: Tom Lane
Date:
Subject: Re: Passing server_encoding to the client is not future-proof