diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index d1a5b96..c91d6ac 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -15443,6 +15443,19 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
+ pg_current_logfile()
+ text
+ primary log file name in use by the logging collector
+
+
+
+ pg_current_logfile(text>)
+ text
+ log file name, of log in the requested format, in use by the
+ logging collector
+
+
+
pg_my_temp_schema()
oid
OID of session's temporary schema, or 0 if none
@@ -15480,12 +15493,6 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
- pg_current_logfile( destination> text>)
- text
- current log file used by the logging collector
-
-
-
session_user
name
session user name
@@ -15667,6 +15674,29 @@ SET search_path TO schema> , schema>, ..
+ pg_current_logfile
+
+
+
+ pg_current_logfile returns, as text
+ the name of either the csv or stderr log file currently in use by the
+ logging collector. This is a file name, not a path. The file is
+ found in the directory. Log
+ collection must be active or the return value
+ is NULL. When called without arguments the stderr
+ log file name is returned if
+ was supplied
+ stderr>, otherwise if csvlog> was supplied
+ to the csv log filename is
+ returned. Otherwise NULL is returned. To request
+ a specific file format supply either csvlog>
+ or stderr> as the value of the optional,
+ type text, parameter. The return value
+ is NULL when the log format requested is not a
+ configured log destination.
+
+
+
pg_my_temp_schema
@@ -15692,23 +15722,6 @@ SET search_path TO schema> , schema>, ..
pg_notification_queue_usage
-
- pg_current_logfile
-
-
-
- pg_current_logfile returns the name of the
- current log file used by the logging collector, as text.
- Log collection must be active or the return value is undefined. When
- csvlog is used as log destination, the csv filename is returned, when
- it is set to stderr, the stderr filename is returned. When both are
- used, it returns the stderr filename.
- There is an optional parameter of type text to determines
- the log filename to return following the log destination, values can
- be 'csvlog' or 'stderr'. When the log format asked is not used as log
- destination then the return value is undefined.
-
-
pg_listening_channels returns a set of names of
asynchronous notification channels that the current session is listening
diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml
index 6cecd81..6420597 100644
--- a/doc/src/sgml/storage.sgml
+++ b/doc/src/sgml/storage.sgml
@@ -83,6 +83,16 @@ Item
+ pg_log_file>
+ A file recording the current log file(s) used by the syslogger, one
+ file name per line. Only file names are present
+ in pg_log_file>; the
+ configuration parameter sets the location of the files. This file is
+ present only when is
+ activated.
+
+
+
pg_logical>
Subdirectory containing status data for logical decoding
@@ -170,13 +180,6 @@ last started with
(this file is not present after server shutdown)
-
- pg_log_file>
- A file recording the current log file(s) used by the syslogger
- when log collection is active (this file is not present when logging_collector is not activated)
-
-
-