postgres.git / summary / log / commit / refs

commit    f2d0c7f18b0632a93d99f373edc3d8109faffbe2
Author:   Fujii Masao <fujii@postgresql.org>
Date:     Wed Jul 20 04:30:58 2022 +0000
First released in: 16.0

    docs: Improve pg_settings_get_flags docs.
    
    In the docs, the GUC flags that pg_settings_get_flags() reported were
    listed using <simplelist>. But the list was treated as separate lines
    in the existing function table and didn't look good. For better view,
    this commit separates the list from the table entry for
    pg_settings_get_flags() and adds the table for it at the bottom of
    the existing function table.
    
    Author: Fujii Masao
    Reviewed-by: Alvaro Herrera, Michael Paquier
    Discussion: https://postgr.es/m/f093edf9-6e5a-b119-ee50-6a2c97c79ee8@oss.nttdata.com


doc/src/sgml/func.sgml | 64 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index b6783b7ad08..36c3e53e42d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -24975,28 +24975,8 @@ SELECT currval(pg_get_serial_sequence('sometable', 'id')); Returns an array of the flags associated with the given GUC, or <literal>NULL</literal> if it does not exist. The result is an empty array if the GUC exists but there are no flags to show. - Only the most useful flags are exposed, as of the following: - <simplelist> - <member> - <literal>EXPLAIN</literal>: parameters included in - <command>EXPLAIN (SETTINGS)</command> commands. - </member> - <member> - <literal>NO_SHOW_ALL</literal>: parameters excluded from - <command>SHOW ALL</command> commands. - </member> - <member> - <literal>NO_RESET_ALL</literal>: parameters excluded from - <command>RESET ALL</command> commands. - </member> - <member> - <literal>NOT_IN_SAMPLE</literal>: parameters not included in - <filename>postgresql.conf</filename> by default. - </member> - <member> - <literal>RUNTIME_COMPUTED</literal>: runtime-computed parameters. - </member> - </simplelist> + Only the most useful flags listed in + <xref linkend="functions-pg-settings-flags"/> are exposed. </para></entry> </row> @@ -25404,6 +25384,46 @@ SELECT collation for ('foo' COLLATE "de_DE"); </tgroup> </table> + <table id="functions-pg-settings-flags"> + <title>GUC Flags</title> + <tgroup cols="2"> + <thead> + <row><entry>Flag</entry><entry>Description</entry></row> + </thead> + <tbody> + <row> + <entry><literal>EXPLAIN</literal></entry> + <entry>Parameters with this flag are included in + <command>EXPLAIN (SETTINGS)</command> commands. + </entry> + </row> + <row> + <entry><literal>NO_SHOW_ALL</literal></entry> + <entry>Parameters with this flag are excluded from + <command>SHOW ALL</command> commands. + </entry> + </row> + <row> + <entry><literal>NO_RESET_ALL</literal></entry> + <entry>Parameters with this flag are excluded from + <command>RESET ALL</command> commands. + </entry> + </row> + <row> + <entry><literal>NOT_IN_SAMPLE</literal></entry> + <entry>Parameters with this flag are not included in + <filename>postgresql.conf</filename> by default. + </entry> + </row> + <row> + <entry><literal>RUNTIME_COMPUTED</literal></entry> + <entry>Parameters with this flag are runtime-computed ones. + </entry> + </row> + </tbody> + </tgroup> + </table> + <para> <xref linkend="functions-info-object-table"/> lists functions related to database object identification and addressing. [parent: 2b99ce10c2bc]