Index: doc/src/sgml/ref/show.sgml
===================================================================
RCS file: /opt/src/cvs/pgsql/doc/src/sgml/ref/show.sgml,v
retrieving revision 1.17
diff -c -r1.17 show.sgml
*** doc/src/sgml/ref/show.sgml 17 May 2002 01:19:16 -0000 1.17
--- doc/src/sgml/ref/show.sgml 20 Jul 2002 16:54:21 -0000
***************
*** 83,89 ****
SHOW DateStyle;
! INFO: DateStyle is ISO with US (NonEuropean) conventions
--- 83,92 ----
SHOW DateStyle;
! DateStyle
! ---------------------------------------
! ISO with US (NonEuropean) conventions
! (1 row)
***************
*** 91,99 ****
Show the current genetic optimizer (geqo) setting:
SHOW GEQO;
! INFO: geqo is on
--- 94,125 ----
Show the current genetic optimizer (geqo) setting:
SHOW GEQO;
! geqo
! ------
! on
! (1 row)
+
+
+ Show all settings:
+
+ SHOW ALL;
+ name | setting
+ -------------------------------+---------------------------------------
+ australian_timezones | off
+ authentication_timeout | 60
+ checkpoint_segments | 3
+ .
+ .
+ .
+ wal_debug | 0
+ wal_files | 0
+ wal_sync_method | fdatasync
+ (94 rows)
+
+
+
Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /opt/src/cvs/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.104
diff -c -r1.104 func.sgml
*** doc/src/sgml/func.sgml 24 Jun 2002 22:17:01 -0000 1.104
--- doc/src/sgml/func.sgml 20 Jul 2002 20:34:04 -0000
***************
*** 4437,4442 ****
--- 4437,4555 ----
+ Configuration Settings Information Functions
+
+
+ Name Return Type Description
+
+
+
+
+
+ current_setting(setting_name)
+
+ text
+ value of current setting
+
+
+
+ set_config(setting_name,
+ new_value,
+ is_local)
+
+ text
+ new value of current setting
+
+
+
+
+
+
+ setting
+ current
+
+
+
+ setting
+ set
+
+
+
+ The current_setting is used to obtain the current
+ value of the setting_name setting, as a query
+ result. For example:
+
+ select current_setting('DateStyle');
+ current_setting
+ ---------------------------------------
+ ISO with US (NonEuropean) conventions
+ (1 row)
+
+
+
+
+ set_config allows the setting_name
+ setting to be changed to new_value.
+ If is_local is set to true,
+ the new value will only apply to the current transaction. If you want
+ the new value to apply for the current session, use false
+ instead. For example:
+
+ SHOW show_query_stats;
+ show_query_stats
+ ------------------
+ on
+ (1 row)
+
+ select set_config('show_query_stats','off','f');
+ set_config
+ ------------
+ off
+ (1 row)
+
+ SHOW show_query_stats;
+ show_query_stats
+ ------------------
+ off
+ (1 row)
+
+ select set_config('show_query_stats','on','t');
+ set_config
+ ------------
+ on
+ (1 row)
+
+ SHOW show_query_stats;
+ show_query_stats
+ ------------------
+ off
+ (1 row)
+
+ BEGIN;
+ BEGIN
+ select set_config('show_query_stats','on','t');
+ set_config
+ ------------
+ on
+ (1 row)
+
+ SHOW show_query_stats;
+ show_query_stats
+ ------------------
+ on
+ (1 row)
+
+ COMMIT;
+ COMMIT
+ SHOW show_query_stats;
+ show_query_stats
+ ------------------
+ off
+ (1 row)
+
+
+
+
Access Privilege Inquiry Functions