pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Upgrade to new version
Date: Thu, 10 Oct 2002 10:33:54 -0400 (EDT)
Message-ID: <200210101433.g9AEXsX02083@candle.pha.pa.us> (raw)
In-Reply-To: <3DA53046.8080007@wettzell.ifag.de>


I don't have any good news for you.  Yes, you can set up a server on a
different port and perform a dump and reload while both systems are up,
but as you say, you are going to miss inserts during the dump because
pg_dump takes a snapshot when it starts.

My only suggestion is to keep the old database SELECT-only during the
dump, or somehow gather the changes that happen after the dump and
manually move them to the new database.

---------------------------------------------------------------------------

Reiner Dassing wrote:
> Hello all!
> 
> I would like to ask  what would be the best procedure to upgrade to a
> new version of PostgreSQL in a production system when there is a 'initdb'
> necessary?
> 
> Situation:
> We are running PostgreSQL in a production system. There are about 1000
> selects and about 100 inserts per minute.
> 
> 
> To upgrade to PostgreSQL 7.2.3 there is an 'initdb' necessary.
> 
> The straight forward approach is to shut down the PostgreSQL server
> and restore the saved databases.
> But, this approach is not possible for us.
> 
> We need a "smooth" switch over with a downtime of maximum 5 minutes.
> 
> It is possible to set up an other filesystem and another PostgreSQL server
> with another port number to initdb the database and restore the databases
> and tables backuped at a given time.
> But meanwhile some new inserts (well a lot of them) did happen in the existing
> databases.
> How should the missed inserts be transferred to the new PostgreSQL server?
> 
> What would you recommend for this switch?
> 
> Thank you for your discussion!
> -- 
> --
> Mit freundlichen Gruessen / With best regards
>     Reiner Dassing
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 

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



view thread (4+ messages)  latest in thread

Message-ID: <200210101433.g9AEXsX02083@candle.pha.pa.us>
Permalink:  ../200210101433.g9AEXsX02083@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200210101433.g9AEXsX02083@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, dassing@wettzell.ifag.de
  Subject: Re: Upgrade to new version
  In-Reply-To: <200210101433.g9AEXsX02083@candle.pha.pa.us>
  References: <3DA53046.8080007@wettzell.ifag.de> <200210101433.g9AEXsX02083@candle.pha.pa.us>

* 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