pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Palle Girgensohn <girgen@pingpong.net>
To: pgsql-admin@postgresql.org
Subject: reduce downtime when upgrading 7.3 -> 7.4
Date: Sun, 08 Feb 2004 03:35:05 +0100
Message-ID: <331690000.1076207705@palle.girgensohn.se> (raw)

Hi,

We use postgresql for rather large databases. For a typical installation, a 
pg_restore takes a couple of hours, at least (the dumpfiles are usually 2-4 
gigabytes or so, including BLOBs). The machines are expected to be up 24/7, 
so this dump/restore procedure makes upgrading unpopular. Is there any 
(safe) way to speed this process up?

The most obvious question is, can we use pg_upgrade from contrib? It seems 
not to have been updated since 7.3, and is generally documented as 
untested. What kind of problems can we get, can they be tested for in a 
testbed in advance?

If pg_upgrade is not a good idea, how can I speed up pg_restore? Best way 
to set things like fsync etc in postgresql.conf? Will it make a big 
difference?

We use FreeBSD-4.9 and want to upgrade from 7.3.4 -> 7.4.1.

Thanks,
Palle




view thread (6+ messages)  latest in thread

Message-ID: <331690000.1076207705@palle.girgensohn.se>
Permalink:  ../331690000.1076207705@palle.girgensohn.se/
Also on:    postgresql.org/message-id/331690000.1076207705@palle.girgensohn.se

 · 

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: girgen@pingpong.net
  Subject: Re: reduce downtime when upgrading 7.3 -> 7.4
  In-Reply-To: <331690000.1076207705@palle.girgensohn.se>
  References: <331690000.1076207705@palle.girgensohn.se>

* 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