diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f5bfe59..5e0a088 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -15699,7 +15699,10 @@ SET search_path TO schema , schema, .. or stderr as the value of the optional parameter. The return value is NULL when the log format requested is not a configured . - + pg_current_logfiles reflects the content of the + file. All caveats + regards current_logfiles content are applicable + to pg_current_logfiles' return value. pg_my_temp_schema diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml index 3b8f5fd..928133c 100644 --- a/doc/src/sgml/storage.sgml +++ b/doc/src/sgml/storage.sgml @@ -81,10 +81,37 @@ Item current_logfiles. - Non-PostgreSQL log sources, such as 3rd - party libraries, which deliver error messages directly to stderr are - always logged by PostgreSQL to stderr. Stderr - is also the destination for any incomplete log messages produced by + + pg_ctl + and current_logfiles + + + stderr + and current_logfiles + + + log_destination configuration parameter + and current_logfiles + + + Although logs directed to stderr may be written + to the filesystem, when the writing of stderr is + managed outside of the PostgreSQL database + server the location of such files in the filesystem is not reflected in + the content of current_logfiles. One such case is + when the pg_ctl command is used to start + the postgres database server, capture + the stderr output of the server, and direct it to a + file. + + There are other notable situations related + to stderr logging. + Non-PostgreSQL log sources, such as 3rd party + libraries, which deliver error messages directly + to stderr are always logged + by PostgreSQL + to stderr. Stderr is also the + destination for any incomplete log messages produced by PostgreSQL. When stderr is not in ,