X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C28B93A5EA4; Thu, 27 Jan 2005 13:36:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58154-10; Thu, 27 Jan 2005 13:36:36 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 459DC3A5E7D; Thu, 27 Jan 2005 13:36:38 +0000 (GMT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 4713635211; Thu, 27 Jan 2005 05:35:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 17DAD3520B; Thu, 27 Jan 2005 05:35:40 -0800 (PST) Date: Thu, 27 Jan 2005 05:35:40 -0800 (PST) From: Stephan Szabo To: Sandeep Gaikwad Cc: pgsql-sql@postgresql.org, pgsql-general@postgresql.org Subject: Re: [SQL] Foreign Key relationship between two databases In-Reply-To: <41F8E9F8.6080304@vertex.co.in> Message-ID: <20050127053355.W68725@megazone.bigpanda.com> References: <41F8E9F8.6080304@vertex.co.in> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/1550 X-Sequence-Number: 72499 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.