pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kostyrka <andreas@kostyrka.org>
To: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: VACUUMs take twice as long across all nodes
Date: Sun, 29 Oct 2006 17:24:33 +0100
Message-ID: <1162139073.7606.1.camel@andi-lap> (raw)
In-Reply-To: <20061029153404.GF14585@phlogiston.dyndns.org>
References: <20061026095827.9e85e1c0.gdh@laterooms.com>
	<20196.1161874041@sss.pgh.pa.us>
	<20061026160609.5e94e581.gdh@laterooms.com>
	<20061026191728.GD26892@nasby.net>
	<20061026213556.174bd7b5.gdh@laterooms.com>
	<20061026220937.GA6866@phlogiston.dyndns.org>
	<20061027102025.8183c5d9.gdh@laterooms.com>
	<20061029145825.GB14585@phlogiston.dyndns.org>
	<20061029150826.80afe324.gdh@laterooms.com>
	<20061029153404.GF14585@phlogiston.dyndns.org>

Am Sonntag, den 29.10.2006, 10:34 -0500 schrieb Andrew Sullivan:
> On Sun, Oct 29, 2006 at 03:08:26PM +0000, Gavin Hamill wrote:
> > 
> > This is interesting, but I don't understand.. We've done a full restore
> > from one of these pg_dump backups before now and it worked just great.
> > 
> > Sure I had to DROP SCHEMA _replication CASCADE to clear out all the
> > slony-specific triggers etc., but the new-master ran fine, as did
> > firing up new replication to the other nodes :)
> > 
> > Was I just lucky?
> 
> Yes.  Slony alters data in the system catalog for a number of
> database objects on the replicas.  It does this in order to prevent,
> for example, triggers from firing both on the origin and the replica. 
> (That is the one that usually bites people hardest, but IIRC it's not
> the only such hack in there.)  This was a bit of a dirty hack that
> was supposed to be cleaned up, but that hasn't been yet.  In general,
> you can't rely on a pg_dump of a replica giving you a dump that, when
> restored, actually works.

Actually, you need to get the schema from the master node, and can take
the data from a slave. In mixing dumps like that, you must realize that
there are two seperate parts in the schema dump: "table definitions" and
"constraints". Do get a restorable backup you need to put the table
definitions stuff before your data, and the constraints after the data
copy.

Andreas

> 
> A
> 

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (17+ messages)  latest in thread

Message-ID: <1162139073.7606.1.camel@andi-lap>
Permalink:  ../1162139073.7606.1.camel@andi-lap/
Also on:    postgresql.org/message-id/1162139073.7606.1.camel@andi-lap

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andreas@kostyrka.org, ajs@crankycanuck.ca
  Subject: Re: VACUUMs take twice as long across all nodes
  In-Reply-To: <1162139073.7606.1.camel@andi-lap>

* 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