Re: Logging the fact that a log was shipped

From: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Logging the fact that a log was shipped
Date: 2017-08-28 15:11:40
Message-ID: 20170828151139.quw6tjixdqekszpb@squirrel.exwg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

## Ron Johnson (ron(dot)l(dot)johnson(at)cox(dot)net):

> > I'd put a wrapper around your rsync (a short shell script
> > would be sufficient) in the lines of rsync ... && logger "done",
> > that way you'd get the information via syslog.
>
> And if logging to stderr?

In that case your original approach could have worked - after all,
archive_command is run via a simple system() call. It might depend
on the logging collector and how you started PostgreSQL in the first
place... I'm not sure why it didn't work for you, but your original
mail didn't have much detail in that area.
Perhaps just add a -v to the rsync command line and see what happens?

Regards,
Christoph

--
Spare Space.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2017-08-28 17:28:44 Re: Logging the fact that a log was shipped
Previous Message Christoph Moench-Tegeder 2017-08-28 15:06:43 Re: Logging the fact that a log was shipped