Re: [SQL] Foreign Key relationship between two databases

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Sandeep Gaikwad <sgaikwad(at)vertex(dot)co(dot)in>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] Foreign Key relationship between two databases
Date: 2005-01-27 13:35:40
Message-ID: 20050127053355.W68725@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Thu, 27 Jan 2005, Sandeep Gaikwad wrote:

> I can give foreign key relationship between two tables of same
> database. Can I give foreign key relationship between tables of two
> databases ? Plz, let me know if possible & send me how can I do that?

Unfortunately, that's not really currently possible. You might be able to
fake some portion of it with custom triggers using dblink but I don't
think the locking would entirely work.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anil 2005-01-27 13:54:24 Scanning the PGSQL DB
Previous Message Florian G. Pflug 2005-01-27 13:22:33 Re: visualizing B-tree index coverage

Browse pgsql-sql by date

  From Date Subject
Next Message Sean Davis 2005-01-27 13:57:10 Re: What's the equivalent in PL/pgSQL
Previous Message Sandeep Gaikwad 2005-01-27 13:17:44 Foreign Key relationship between two databases