pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add pg_current_logfile() function.
Date: Fri, 03 Mar 2017 06:18:34 +0000
Message-ID: <E1cjgXy-0000ma-En@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add pg_current_logfile() function.

The syslogger will write out the current stderr and csvlog names, if
it's running and there are any, to a new file in the data directory
called "current_logfiles".  We take care to remove this file when it
might no longer be valid (but not at shutdown).  The function
pg_current_logfile() can be used to read the entries in the file.

Gilles Darold, reviewed and modified by Karl O.  Pinc, Michael
Paquier, and me.  Further review by Álvaro Herrera and Christoph Berg.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/19dc233c32f2900e57b8da4f41c0f662ab42e080

Modified Files
--------------
doc/src/sgml/config.sgml                     |  26 +++++++
doc/src/sgml/func.sgml                       |  46 ++++++++++++
doc/src/sgml/storage.sgml                    |   6 ++
src/backend/catalog/system_views.sql         |   2 +
src/backend/postmaster/postmaster.c          |   7 ++
src/backend/postmaster/syslogger.c           |  79 ++++++++++++++++++++
src/backend/replication/basebackup.c         |   4 ++
src/backend/utils/adt/misc.c                 | 103 +++++++++++++++++++++++++++
src/bin/pg_basebackup/t/010_pg_basebackup.pl |   6 +-
src/include/catalog/catversion.h             |   2 +-
src/include/catalog/pg_proc.h                |   4 ++
src/include/postmaster/syslogger.h           |   7 ++
12 files changed, 288 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cjgXy-0000ma-En@gemulon.postgresql.org>
Permalink:  ../E1cjgXy-0000ma-En@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cjgXy-0000ma-En@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Add pg_current_logfile() function.
  In-Reply-To: <E1cjgXy-0000ma-En@gemulon.postgresql.org>
  References: <E1cjgXy-0000ma-En@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox