X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D51C4476331 for ; Thu, 3 Apr 2003 13:00:36 -0500 (EST) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by postgresql.org (Postfix) with ESMTP id 1DFB2476326 for ; Thu, 3 Apr 2003 13:00:36 -0500 (EST) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.4) with ESMTP-TLS id 1693945; Thu, 03 Apr 2003 10:36:12 -0800 Message-ID: <3E8C76DD.3030306@joeconway.com> Date: Thu, 03 Apr 2003 10:01:01 -0800 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Antti_Ij=E4s?= Cc: pgsql-sql@postgresql.org Subject: Re: Foreign key from another database References: <42ee0b8a.0304030116.68199b0c@posting.google.com> In-Reply-To: <42ee0b8a.0304030116.68199b0c@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/45 X-Sequence-Number: 12746 Antti Ij=E4s wrote: > Can I have a reference (with cascading), to another database? Let me > try to explain the situation a little better ;-) >=20 You can write a trigger that uses functions from contrib/dblink to=20 execute a command in another database. However, without two-phase commit=20 support I don't think you can be sure the entire operation is atomic. Joe