Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL clustering VS MySQL clustering

From: Christopher Browne <cbbrowne(at)ca(dot)afilias(dot)info>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: PostgreSQL clustering VS MySQL clustering
Date: 2005-01-28 19:49:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
ajs(at)crankycanuck(dot)ca (Andrew Sullivan) writes:
> On Mon, Jan 24, 2005 at 01:28:29AM +0200, Hannu Krosing wrote:
>> IIRC it hates pg_dump mainly on master. If you are able to run pg_dump
>> from slave, it should be ok.
> For the sake of the archives, that's not really a good idea.  There
> is some work afoot to solve it, but at the moment dumping from a
> slave gives you a useless database dump.

That overstates things a tad; I think it's worth elaborating on a bit.

There's a problem with the results of dumping the _schema_ from a
Slony-I 'subscriber' node; you want to get the schema from the origin
node.  The problem has to do with triggers; Slony-I suppresses RI
triggers and such like on subscriber nodes in a fashion that leaves
the dumped schema a bit broken with regard to triggers.

But there's nothing wrong with the idea of using "pg_dump --data-only"
against a subscriber node to get you the data without putting a load
on the origin.  And then pulling the schema from the origin, which
oughtn't be terribly expensive there.
Christopher Browne
(416) 673-4124 (land)

In response to


pgsql-performance by date

Next:From: Pallav KalvaDate: 2005-01-28 19:57:31
Subject: Re: Poor Performance on Postgres 8.0
Previous:From: Tom LaneDate: 2005-01-28 19:48:35
Subject: Re: Poor Performance on Postgres 8.0

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group