From: Joe Conway <mail@joeconway.com>
To: geoff@metalogicplc.com
Cc: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: FW: FW: Linking databases.
Date: Thu, 11 Jul 2002 10:01:33 -0700
Message-ID: <3D2DB9ED.4020305@joeconway.com> (raw)
References: <FDCF842C8B1DD311833C0090277C04B50C94D7@augusta.planmatics.co.uk>
Geoff wrote:
> I don't think either COPY or PG_DUMP will help in this case...
>
> I have a users table in database ADMIN with a primary key user_id. I have a
> users_access table in database LIVE which I was hoping to have a foreign key
> user_id reference the user_id column in the ADMIN database, so If I deleted
> a user it would cascade and delete the users_access records.....
>
> are you saying this is impossible? if so, are their plans for this to be
> made a feature in a future release?
>
See contrib/dblink for a possible workaround. Note that if you want to
use it for INSERT/UPDATE/DELETE, you'll have to grab the latest version
out of CVS.
There doesn't seem to be much support for a native cross-database access
among the core developers, so I don't think you'll see that soon. As I
think others have mentioned, the next release (7.3) will support
multiple schemas in one database which might be a solution for you.
HTH,
Joe
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: mail@joeconway.com, geoff@metalogicplc.com
Subject: Re: FW: FW: Linking databases.
In-Reply-To: <3D2DB9ED.4020305@joeconway.com>
References: <FDCF842C8B1DD311833C0090277C04B50C94D7@augusta.planmatics.co.uk> <3D2DB9ED.4020305@joeconway.com>
* 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