From: Joe Conway <mail@joeconway.com>
To: Antti Ijäs <antti.ijas@arcada.fi>
Cc: pgsql-sql@postgresql.org
Subject: Re: Foreign key from another database
Date: Thu, 03 Apr 2003 10:01:01 -0800
Message-ID: <3E8C76DD.3030306@joeconway.com> (raw)
In-Reply-To: <42ee0b8a.0304030116.68199b0c@posting.google.com>
References: <42ee0b8a.0304030116.68199b0c@posting.google.com>
Antti Ijäs wrote:
> Can I have a reference (with cascading), to another database? Let me
> try to explain the situation a little better ;-)
>
You can write a trigger that uses functions from contrib/dblink to
execute a command in another database. However, without two-phase commit
support I don't think you can be sure the entire operation is atomic.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@joeconway.com, antti.ijas@arcada.fi
Subject: Re: Foreign key from another database
In-Reply-To: <3E8C76DD.3030306@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