Re: [HACKERS] Point in Time Recovery

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Klaus Naumann <kn(at)mgnet(dot)de>, markw(at)osdl(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Point in Time Recovery
Date: 2004-07-29 17:07:51
Message-ID: 200407291707.i6TH7pK15909@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-patches

Bruce Momjian wrote:
>
> I do think we need a boolean for start/stop of archiving, rather than
> setting it to '' to turn it off. Tom, I think the group agreed to this
> on clarity grounds. I would like the server to throw an error if you
> try to turn on archiving and the command is set to ''.

Let me illustrate. To turn off archiving you have to change:

#archive_command = ''
archive_command = 'cp %p /mnt/server/archivedir/%f'

to

archive_command = ''
#archive_command = 'cp %p /mnt/server/archivedir/%f'

and if you comment both or neither, you have problems.

With a boolean it would be:

archive_mode = on
archive_command = 'cp %p /mnt/server/archivedir/%f'

archive_mode = off
archive_command = 'cp %p /mnt/server/archivedir/%f'

Now, if you say people will rarely turn archiving on/off, then one
parameter seems to make more sense.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-07-29 17:16:05 Re: [HACKERS] Point in Time Recovery
Previous Message Tom Lane 2004-07-29 16:38:26 Re: PG crashes MacOS 10.3.4

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-07-29 17:16:05 Re: [HACKERS] Point in Time Recovery
Previous Message Magnus Hagander 2004-07-29 17:05:47 Re: more signals (was: Function to kill backend)

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2004-07-29 17:10:06 Re: [HACKERS] win32 crash in initdb
Previous Message Bruce Momjian 2004-07-29 16:30:26 Re: Updated Turkish FAQ