Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c7be7ff

Browse files
committed
Here is a documentation patch for the pg_settings virtual table. If
there are no objections, please apply. Joe Conway
1 parent 6aa4482 commit c7be7ff

File tree

1 file changed

+62
-1
lines changed

1 file changed

+62
-1
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Documentation of the system catalogs, directed toward PostgreSQL developers
3-
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.56 2002/08/30 19:23:18 tgl Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.57 2002/09/02 05:44:43 momjian Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -161,6 +161,11 @@
161161
<entry>database users</entry>
162162
</row>
163163

164+
<row>
165+
<entry>pg_settings</entry>
166+
<entry>current session run-time parameters</entry>
167+
</row>
168+
164169
<row>
165170
<entry>pg_statistic</entry>
166171
<entry>optimizer statistics</entry>
@@ -2866,6 +2871,62 @@
28662871
</sect1>
28672872

28682873

2874+
<sect1 id="catalog-pg-settings">
2875+
<title>pg_settings</title>
2876+
2877+
<para>
2878+
<structname>pg_settings</structname> virtual table allows display and update
2879+
of current session run-time parameters. There is one entry for each of the
2880+
available parameters provided by <command>SHOW ALL</command>. But it is
2881+
in a form that allows it to be joined with other relations and have a
2882+
selection criteria applied.
2883+
</para>
2884+
2885+
<para>
2886+
An <command>UPDATE</command> performed on <structname>pg_settings</structname>
2887+
is equivalent to executing the <command>SET</command> command on that named
2888+
parameter. The change only affects the value used by the current session. If
2889+
an <command>UPDATE</command> is issued within a transaction that is later
2890+
aborted, the effects of the <command>UPDATE</command> command disappear when
2891+
the transaction is rolled back. Once the surrounding transaction is
2892+
committed, the effects will persist until the end of the session, unless
2893+
overridden by another <command>UPDATE</command> or <command>SET</command>.
2894+
</para>
2895+
2896+
<table>
2897+
<title>pg_settings Columns</title>
2898+
2899+
<tgroup cols=4>
2900+
<thead>
2901+
<row>
2902+
<entry>Name</entry>
2903+
<entry>Type</entry>
2904+
<entry>References</entry>
2905+
<entry>Description</entry>
2906+
</row>
2907+
</thead>
2908+
2909+
<tbody>
2910+
<row>
2911+
<entry>name</entry>
2912+
<entry><type>text</type></entry>
2913+
<entry></entry>
2914+
<entry>The name of a current session run-time parameter</entry>
2915+
</row>
2916+
2917+
<row>
2918+
<entry>setting</entry>
2919+
<entry><type>text</type></entry>
2920+
<entry></entry>
2921+
<entry>The value of a current session run-time parameter</entry>
2922+
</row>
2923+
</tbody>
2924+
</tgroup>
2925+
</table>
2926+
2927+
</sect1>
2928+
2929+
28692930
<sect1 id="catalog-pg-statistic">
28702931
<title>pg_statistic</title>
28712932

0 commit comments

Comments
 (0)