Re: XLogArchivingActive - Mailing list pgsql-hackers

From Tom Lane
Subject Re: XLogArchivingActive
Date
Msg-id 13545.1148573028@sss.pgh.pa.us
Whole thread Raw
In response to Re: XLogArchivingActive  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: XLogArchivingActive  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Tom Lane wrote:
>> This is silly.  Why not just turn archiving on and off?

> Not quite. I want online backup, but no archiving. Currently, I have to 
> edit postgresql.conf and SIGHUP to "turn on archiving" configuring a 
> (hopefully) writable directory, do the backup, edit postgresql.conf and 
> SIGHUP again. Not too convenient...

You don't get to count the edit/SIGHUP steps, because those would be the
same for any other GUC.

AFAICS you could get the effect by setting up an archive_command scriptsleep 100exit 1
so that the archiver will do nothing.

BTW, I don't actually understand why you want this at all.  If you're
not going to keep a continuing series of WAL files, you don't have any
PITR capability.  What you're proposing seems like a bulky, unportable,
hard-to-use equivalent of pg_dump.  Why not use pg_dump?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jeremy Drake
Date:
Subject: psql \copy warning
Next
From: Andreas Pflug
Date:
Subject: Inefficient bytea escaping?