summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2025-04-04 12:17:17 +0000
committerHeikki Linnakangas2025-04-04 12:17:17 +0000
commitb4f453f6ab71eb72cb3a46a5be18e07e5cc285df (patch)
tree2aa054b377d4c3ee2ccbbeb1e07e67947bd6d973
parent7afca7edef751b8d7c0f5b6402ffcefc11c67fdd (diff)
docs: Clarify that NULL arg to set_config() means reset to default
Author: David G. Johnston <[email protected]> Reviewed-by: Zhang Mingli <[email protected]> Discussion: https://www.postgresql.org/message-id/CAKFQuwY0SK6JdCci1VJX6xsztRXgGeVEY-grkENZx%[email protected]
-rw-r--r--doc/src/sgml/func.sgml5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 9f531e23283..0224f93733d 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -28577,6 +28577,11 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres}
the SQL command <xref linkend="sql-set"/>.
</para>
<para>
+ <function>set_config</function> accepts the NULL value for
+ <parameter>new_value</parameter>, but as settings cannot be null, it
+ is interpreted as a request to reset the setting to its default value.
+ </para>
+ <para>
<literal>set_config('log_statement_stats', 'off', false)</literal>
<returnvalue>off</returnvalue>
</para></entry>