From ea886339b8406674ebceb456e5ef1b4fc7c170b4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 27 Jun 2003 19:08:38 +0000 Subject: Add is_superuser parameter reporting, soon to be used by psql. --- doc/src/sgml/libpq.sgml | 5 +++-- doc/src/sgml/protocol.sgml | 5 +++-- doc/src/sgml/ref/show.sgml | 12 +++++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index b41ba1e172c..ce70d6eb6be 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -812,7 +812,8 @@ is not known. Parameters reported as of the current release include server_version (cannot change after startup); server_encoding (also not presently changeable after start); -client_encoding, and +client_encoding, +is_superuser, and DateStyle. diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 2d5b5d8c222..75fe6b3982e 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -998,7 +998,8 @@ server_version (a pseudo-parameter that cannot change after startup); server_encoding (also not presently changeable after start); - client_encoding, and + client_encoding, + is_superuser, 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/show.sgml b/doc/src/sgml/ref/show.sgml index 0232d97dfce..09619bb4827 100644 --- a/doc/src/sgml/ref/show.sgml +++ b/doc/src/sgml/ref/show.sgml @@ -1,5 +1,5 @@ @@ -97,6 +97,16 @@ SHOW ALL + + + IS_SUPERUSER + + + True if the current session authorization identifier has + superuser privileges. + + + -- cgit v1.2.3