mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add new system view, pg_config
Move and refactor the underlying code for the pg_config client application to src/common in support of sharing it with a new system information SRF called pg_config() which makes the same information available via SQL. Additionally wrap the SRF with a new system view, as called pg_config. Patch by me with extensive input and review by Michael Paquier and additional review by Alvaro Herrera.
This commit is contained in:
@ -7349,6 +7349,11 @@
|
||||
<entry>available versions of extensions</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><link linkend="view-pg-config"><structname>pg_config</structname></link></entry>
|
||||
<entry>compile-time configuration parameters</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><link linkend="view-pg-cursors"><structname>pg_cursors</structname></link></entry>
|
||||
<entry>open cursors</entry>
|
||||
@ -7609,6 +7614,53 @@
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="view-pg-config">
|
||||
<title><structname>pg_config</structname></title>
|
||||
|
||||
<indexterm zone="view-pg-config">
|
||||
<primary>pg_config</primary>
|
||||
</indexterm>
|
||||
|
||||
<para>
|
||||
The view <structname>pg_config</structname> describes the
|
||||
compile-time configuration parameters of the currently installed
|
||||
version of <productname>PostgreSQL</>. It is intended, for example, to
|
||||
be used by software packages that want to interface to
|
||||
<productname>PostgreSQL</> to facilitate finding the required header
|
||||
files and libraries. It provides the same basic information as the
|
||||
<xref linkend="app-pgconfig"> <productname>PostgreSQL</> Client
|
||||
Application.
|
||||
</para>
|
||||
|
||||
<table>
|
||||
<title><structname>pg_config</> Columns</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Name</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><structfield>name</structfield></entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry>The parameter name</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>setting</structfield></entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry>The parameter value</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="view-pg-cursors">
|
||||
<title><structname>pg_cursors</structname></title>
|
||||
|
||||
|
Reference in New Issue
Block a user