pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Wal Segment files Backup Strategy for archiving
2+ messages / 2 participants
[nested] [flat]

* Wal Segment files Backup Strategy for archiving
@ 2010-04-15 21:33 Frederiko Costa <frederiko@gmail.com>
  2010-04-15 22:41 ` Re: Wal Segment files Backup Strategy for archiving Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 1 reply; 2+ messages in thread

From: Frederiko Costa @ 2010-04-15 21:33 UTC (permalink / raw)
  To: pgsql-admin

Hello folks,

I wanted to use the archiving feature, with log shipping / warm-standby
server. No problem on setting up so far. However, reading the documentation
brought me one question that I'd like to share with the list.

In the documentation, as far as I understood, it's said you need to make a
base backup and copy the data cluster area to the destination you choose.
Use pg_start_backup(), copy the data/ directory (or the cluster area), and
pg_stop_backup(). It created the first checkpoint (correct?) and copied the
wal segments to the area you specified. You can even delete the files under
pg_xlog, because you will rely on the ones shipped out. The question is:
once the base backup has been made and I change any setting on this primary
server, on postgresql.conf for example, would I have to redo the procedure
and set Pgsql to backup mode if I want to apply these changes I made updated
on standby server or it's just a matter of transferring the file to the
standby server?

Thanks,
Frederiko Costa

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Wal Segment files Backup Strategy for archiving
  2010-04-15 21:33 Wal Segment files Backup Strategy for archiving Frederiko Costa <frederiko@gmail.com>
@ 2010-04-15 22:41 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2010-04-15 22:41 UTC (permalink / raw)
  To: Frederiko Costa <frederiko@gmail.com>; pgsql-admin

Frederiko Costa <frederiko@gmail.com> wrote:
 
> Use pg_start_backup(), copy the data/ directory (or the cluster
> area), and pg_stop_backup(). It created the first checkpoint
> (correct?)
 
Yes.
 
> once the base backup has been made and I change any setting on
> this primary server, on postgresql.conf for example, would I have
> to redo the procedure and set Pgsql to backup mode if I want to
> apply these changes I made updated on standby server or it's just
> a matter of transferring the file to the standby server?
 
You can transfer the .conf files, but be careful about the archive
settings; you may not want those to be identical on the standby. 
Also pay attention to memory settings, etc., if the hardware isn't
identical.  Of course, this is the same with setting it up after
you copy a base backup.
 
-Kevin



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-04-15 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-04-15 21:33 Wal Segment files Backup Strategy for archiving Frederiko Costa <frederiko@gmail.com>
2010-04-15 22:41 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>

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