From 29a20145fd2d1859eb3ec1788240244d0b50f68f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 3 Sep 2003 22:05:09 +0000 Subject: Pass session_authorization to the client and make psql update its prompt accordingly. --- doc/src/sgml/libpq.sgml | 5 +++-- doc/src/sgml/protocol.sgml | 5 +++-- doc/src/sgml/ref/psql-ref.sgml | 23 ++++++++++++++++++----- 3 files changed, 24 insertions(+), 9 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index fd06b51905c..27bb09e8201 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -857,7 +857,8 @@ is not known. Parameters reported as of the current release include server_version (cannot change after startup); client_encoding, -is_superuser, and +is_superuser, +session_authorization, and DateStyle. diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 5127bd66d52..09768a46cf7 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -1006,7 +1006,8 @@ server_version (a pseudo-parameter that cannot change after startup); client_encoding, - is_superuser, and + is_superuser, + session_authorization, and DateStyle. This set might change in the future, or even become configurable. Accordingly, a frontend should simply ignore ParameterStatus for diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 35e33e7fe21..1d6da0e3b2d 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -2214,8 +2214,14 @@ testdb=> \set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\' %n - The user name you are connected as (not your local system - user name). + + + The database session user name. (The expansion of this + value might change during a database session as the result + of the command SET SESSION + AUTHORIZATION.) + + @@ -2231,8 +2237,15 @@ testdb=> \set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\' %# - If the current user is a database superuser, then a - #, otherwise a >. + + + If the session user is a database superuser, then a + #, otherwise a >. + (The expansion of this value might change during a database + session as the result of the command SET SESSION + AUTHORIZATION.) + + -- cgit v1.2.3