On Sat, Jan 29, 2022 at 03:38:53PM +0900, Michael Paquier wrote:
> +-- Three exceptions as of transaction_*
> +SELECT name FROM pg_settings_flags
> + WHERE NOT no_show_all AND no_reset_all
> + ORDER BY 1;
> + name
> +------------------------
> + transaction_deferrable
> + transaction_isolation
> + transaction_read_only
> +(3 rows)
I think "as of" is not the right phrase here.
Maybe say: Exceptions are transaction_*
> --- a/doc/src/sgml/func.sgml
> +++ b/doc/src/sgml/func.sgml
> @@ -23596,6 +23596,45 @@ SELECT
> pg_type_is_visible('myschema.widget'::regtype);
> + <para>
> + Returns an array of the flags associated with the given GUC, or
> + <literal>NULL</literal> if the does not exist. The result is
I guess it should say "if the GUC does not exist".
> + an empty array if the GUC exists but there are no flags to show,
> + as supported by the list below.
I'd say "...but none of the GUC's flags are exposed by this function."
> + The following flags are exposed (the most meaningful ones are
> + included):
"The most meaningful ones are included" doesn't seem to add anything.
Maybe it'd be useful to say "(Only the most useful flags are exposed)"
> + <literal>EXPLAIN</literal>, parameters included in
> + <command>EXPLAIN</command> commands.
> + </member>
> + <member>
I think the description is wrong, or just copied from the others.
EXPLAIN is for GUCs which are shown in EXPLAIN(SETTINGS).
|EXPLAIN, parameters included in EXPLAIN commands.
|NO_SHOW_ALL, parameters excluded from SHOW ALL commands.
|NO_RESET_ALL, parameters excluded from RESET ALL commands.
|NOT_IN_SAMPLE, parameters not included in postgresql.conf by default.
|RUNTIME_COMPUTED, runtime-computed parameters.
Instead of a comma, these should use a colon, or something else?
--
Justin