pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Morgan Curley <mcurley@e4media.com>
Cc: PostgreSQL-general <pgsql-general@postgresql.org>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: Cross database foreign keys
Date: Fri, 6 Jul 2001 11:00:14 -0400 (EDT)
Message-ID: <200107061500.f66F0EO30158@jupiter.us.greatbridge.com> (raw)
In-Reply-To: <4.3.2.7.2.20010706092504.023823b8@e4media.com>

Morgan Curley wrote:
> Does anyone know if it is possible to connect to a differernt db from
> within a plsql function.
> I have multilple inter-related schemas and want to enforce some fk
> relationships.

    PL/pgSQL  doesn't support external database connects. PL/TclU
    does.

    But keep in mind that with this kind of setup you don't  have
    two  phase  commits,  and  that  updates  done through such a
    trigger (e.g. cascades)  will  not  rollback  if  your  local
    update does so after it got fired, because you have to commit
    the remote transaction before you know if your local one ever
    will.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




view thread (4+ messages)

Message-ID: <200107061500.f66F0EO30158@jupiter.us.greatbridge.com>
Permalink:  ../200107061500.f66F0EO30158@jupiter.us.greatbridge.com/
Also on:    postgresql.org/message-id/200107061500.f66F0EO30158@jupiter.us.greatbridge.com

 · 

reply

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: JanWieck@Yahoo.com, mcurley@e4media.com, pgsql-general@postgresql.org, pgsql-novice@postgresql.org
  Subject: Re: Cross database foreign keys
  In-Reply-To: <200107061500.f66F0EO30158@jupiter.us.greatbridge.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