Re: Regarding "Point-in-time Recovery" feature

From: Ryan King <rking(at)mindmixer(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: Saurabh Gupta A <saurabh(dot)a(dot)gupta(at)ericsson(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Regarding "Point-in-time Recovery" feature
Date: 2015-03-02 13:40:40
Message-ID: 9E4F5D00-2007-44DC-AEEE-F21201C7A7E1@mindmixer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have archiving enabled for PITR but it has been causing problems. So I changed the archive_command to ‘cd .’ to disable for now.
However, I’m currently looking for a script/process that will rotate the logs every week or so, and also ensure archived wal files don’t pile up.
I
> On Feb 27, 2015, at 2:55 AM, Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> wrote:
>
> On 2/23/15 5:39 AM, Saurabh Gupta A wrote:
>> Hello,
>>
>> Has anybody used online backup feature of postgreSQL? In fact precise
>> postgreSQL term is called: "Point-in-time Recovery" (PITR)
>> This means enabling following additional options in config:
>> ---
>> archive_command = on
>> archive_command = 'cp %p /usr/local/pgsql/pgDataPITR/wals/%f' # This is
>> only example path
>> ---
>>
>> If yes then may I know how it is used and how it impacts database
>> performance?
>
> Other than the overhead of the copy itself, it generally doesn't. There are a very limited number of shortcuts we can take when wal_level is set to minimal, such as not WAL logging the full contents of data inserted into a table that was created/truncated in the same transaction, but generally archiving doesn't impact performance (assuming you keep it running correctly so pg_xlog doesn't fill up ;)
> --
> Jim Nasby, Data Architect, Blue Treble Consulting
> Data in Trouble? Get it in Treble! http://BlueTreble.com
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Dung 2015-03-02 14:57:56 Find similar records (compare tsvectors)
Previous Message hailong Li 2015-03-02 10:49:21 The slave suddenly stopped with such DB log : "will not overwrite a used ItemId" and "heap_insert_redo: failed to add tuple"