pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benjamin Krajmalnik <kraj@illumen.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Howto: Using PITR recovery for standby replication
Date: Thu, 20 Apr 2006 22:43:23 -0600
Message-ID: <8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local> (raw)
References: <443F9BF3.4060101@laposte.net>
	<1145028323.5597.1.camel@localhost.localdomain>
	<443FDF05.4060600@laposte.net>
	<20060421014243.GR49405@pervasive.com>
	<8511B4970E0D124898E973DF496F9B4357E0F4@stash.stackdump.local>
	<2764.1145588998@sss.pgh.pa.us>
	<8511B4970E0D124898E973DF496F9B4357E0F5@stash.stackdump.local>
	<20060421040224.GM5426@surnet.cl>
	<8511B4970E0D124898E973DF496F9B4357E0F7@stash.stackdump.local>
	<20060421043507.GB12614@surnet.cl>

1.  Dropped database
2.  Recreated blank databas
3.  C:\Program Files\PostgreSQL\8.1\bin\pg_restore.exe -i -h 172.20.0.32 -p 5432 -U postgres -d events -v "C:\Documents and Settings\administrator.MS\testbk.backup"
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA public
pg_restore: creating COMMENT SCHEMA public
pg_restore: creating PROCEDURAL LANGUAGE plpgsql
pg_restore: creating TABLE appointments
pg_restore: executing SEQUENCE SET appointments_id_seq
pg_restore: restoring data for table "appointments"
pg_restore: setting owner and privileges for SCHEMA public
pg_restore: setting owner and privileges for COMMENT SCHEMA public
pg_restore: setting owner and privileges for ACL public
pg_restore: setting owner and privileges for PROCEDURAL LANGUAGE plpgsql
pg_restore: setting owner and privileges for TABLE appointments
Process returned exit code 0.

(the above is the result of a sample restore - the database is a simple database with very few records, and was backed up when no activity was taking place against it, unlike our production database).
 
Maybe I am using the wrong switches altogether to accomplish my end results.
 
Thanks a million for your willingness to point me in the right direction.

________________________________

From: Alvaro Herrera [mailto:alvherre@commandprompt.com]
Sent: Thu 4/20/2006 10:35 PM
To: Benjamin Krajmalnik
Cc: Tom Lane; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Howto: Using PITR recovery for standby replication



Benjamin Krajmalnik wrote:

> I am a newbie, so I essentially invoked pg_dump from with pgAdmin3,
> with the defaults (including large objects).  This is the command
> being issued:
> 
> .C:\Program Files\PostgreSQL\8.1\bin\pg_dump.exe -i -h 172.20.0.32 -p 5432 -U postgres -F c -b -v -f "C:\Documents and Settings\administrator.MS\testbk.backup" events
> 
> What I assumed was happening (and I may have very well been wrong) was
> that I was getting a consistent backup of the object at the time that
> it was processed, but not the database as a whole.

This command should produce a consistent dump of all the objects in the
database.  (Not a consistent view of each object in isolation, which is
AFAIU what you are saying.)

Next question is, how are you restoring this dump?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

view thread (8+ messages)  latest in thread

Message-ID: <8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local>
Permalink:  ../8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local/
Also on:    postgresql.org/message-id/8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: kraj@illumen.com, alvherre@commandprompt.com, tgl@sss.pgh.pa.us
  Subject: Re: Howto: Using PITR recovery for standby replication
  In-Reply-To: <8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local>
  References: <443F9BF3.4060101@laposte.net> <1145028323.5597.1.camel@localhost.localdomain> <443FDF05.4060600@laposte.net> <20060421014243.GR49405@pervasive.com> <8511B4970E0D124898E973DF496F9B4357E0F4@stash.stackdump.local> <2764.1145588998@sss.pgh.pa.us> <8511B4970E0D124898E973DF496F9B4357E0F5@stash.stackdump.local> <20060421040224.GM5426@surnet.cl> <8511B4970E0D124898E973DF496F9B4357E0F7@stash.stackdump.local> <20060421043507.GB12614@surnet.cl> <8511B4970E0D124898E973DF496F9B4357E0F9@stash.stackdump.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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