Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id E0DA74758A7 for ; Thu, 11 Jul 2002 13:02:12 -0400 (EDT) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1164318; Thu, 11 Jul 2002 09:35:43 -0700 Message-ID: <3D2DB9ED.4020305@joeconway.com> Date: Thu, 11 Jul 2002 10:01:33 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: geoff@metalogicplc.com Cc: "Pgsql-Admin (E-mail)" Subject: Re: FW: FW: Linking databases. References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/182 X-Sequence-Number: 4868 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