From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Eric Jones <Eric(dot)Jones(at)noaa(dot)gov> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: triggers/functions across databases |
Date: | 2005-05-25 16:00:22 |
Message-ID: | 4294A116.7000705@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Eric Jones wrote:
> We are migrating from Informix to Postgres 7.4.7 and are having a
> difficult time finding if postgres can insert/update tables across
> different databases. Namely using functions/triggers when an
> update/insert is performed on a table it updates/inserts in a table on a
> different database. Informix can do this with no problem but we were
> wondering if there is an easy way for postgres to do this. I've searched
> numerous sites and found vague answers. Thanks in advance.
If in doubt, check the manuals or contact the list.
The short answer is "no" - you can query across schemas but not across
databases.
The long answer is "maybe" - check the contrib/dblink package (in the
source distribution). That can query another database on the same or
different machine.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2005-05-25 16:08:34 | Re: Update on tables when the row doesn't change |
Previous Message | Himanshu Baweja | 2005-05-25 15:52:48 | Re: More detailed error logging? |