Re: Setting table ids in slony

From: Richard Huxton <dev(at)archonet(dot)com>
To: Pat Maddox <pergesu(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Setting table ids in slony
Date: 2007-04-24 07:45:21
Message-ID: 462DB591.30606@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pat Maddox wrote:
> I want to start using slony for replication, and have a question about
> setting table IDs when creating replication sets. The docs say that
> you have to be careful in what IDs you assign to the tables - if
> there's a relationship between two tables, the parent needs to have a
> lower ID.

Can you give a reference for this? AFAIK the only requirement is that
all linked tables need to be in the same set. I seem to recall reading
that if you use inheritence you should check the parent comes before its
children, but nothing about fkeys.

http://cbbrowne.com/info/faq.html
"Q: Is the ordering of tables in a set significant?

A: Most of the time, it isn't. You might imagine it of some value to
order the tables in some particular way in order that "parent" entries
would make it in before their "children" in some foreign key
relationship; that isn't the case since foreign key constraint triggers
are turned off on subscriber nodes."

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2007-04-24 08:12:19 Re: Slow query using simple equality operators
Previous Message Tom Lane 2007-04-24 05:59:43 Re: ERROR: Failed to build any 5-way joins