pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Hrabarchuk <dan@kwasar.biz>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Duplicating a large database.
Date: Tue, 05 Oct 2004 17:26:16 -0700
Message-ID: <1097022376.3710.55.camel@dan.geotivity.net> (raw)

I need to move a large database to new machine. I'd also like to upgrade
my postgres server from 7.3 to 7.4 (at least).

My plan is to set up a query log on my current postgres server. Then I
will make a copy of the database using pg_dump. When the dump is done I
will to shut down the original server, then run the query log on the new
server. This should bring up to date, and reduce the space used.
(Vacuuming is to way too slow).

I've been trying to find the "query logger" portion of the plan. I've
found mini-projects like taillog
(http://gborg.postgresql.org/project/tablelog/projdisplay.php) but these
over complicate what I want. I simply want to reply all the inserts,
updates and deletes that happen on the orignal server while the new
server is dumping/restoring.

What can I use? A text file that I can pipe into psql would be AWESOME!
Any ideas? Any half finished projects that I can complete (or at least
get working enough :)?

Thanks for the help

Dan Hrabarchuk




view thread (2+ messages)  latest in thread

Message-ID: <1097022376.3710.55.camel@dan.geotivity.net>
Permalink:  ../1097022376.3710.55.camel@dan.geotivity.net/
Also on:    postgresql.org/message-id/1097022376.3710.55.camel@dan.geotivity.net

 · 

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: dan@kwasar.biz
  Subject: Re: Duplicating a large database.
  In-Reply-To: <1097022376.3710.55.camel@dan.geotivity.net>
  References: <1097022376.3710.55.camel@dan.geotivity.net>

* 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