Re: [GENERAL] triggers/functions across databases

2005-05-25 Thread Mike Nolan
> If you have databases that are dependent on each others data you should > probably move those databases into a new schema within one database... That's a non-trivial task, especially if some of the tables in the two databases have the same name. -- Mike Nolan ---(end o

Re: [GENERAL] triggers/functions across databases

2005-05-25 Thread Joshua D. Drake
Mike Nolan wrote: If you have databases that are dependent on each others data you should probably move those databases into a new schema within one database... That's a non-trivial task, especially if some of the tables in the two databases have the same name. Migrating from one database t

Re: [GENERAL] triggers/functions across databases

2005-05-25 Thread Joshua D. Drake
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

Re: [GENERAL] triggers/functions across databases

2005-05-25 Thread Richard Huxton
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

Re: [GENERAL] triggers/functions across databases

2005-05-25 Thread Scott Marlowe
On Wed, 2005-05-25 at 07:08, 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 update

[GENERAL] triggers/functions across databases

2005-05-25 Thread Eric Jones
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

Re: [GENERAL] triggers & functions

2000-01-12 Thread Ed Loehr
Oh, and one other thing... The example has a typo. In the function, 'temp' and 'cust' should be the same variable (doesn't matter what it's called). Cheers, Ed Loehr Ed Loehr wrote: > Sarah Officer wrote: > > > Can anyone set me straight here? An example of a trigger which > > calls a sql pr

Re: [GENERAL] triggers & functions

2000-01-12 Thread Ed Loehr
Sarah Officer wrote: > Can anyone set me straight here? An example of a trigger which > calls a sql procedure would be much appreciated! I'd like the > function to be able to access the rows which are being removed. How about examples of a trigger that calls a *PL/pgSQL* procedure that has acc

[GENERAL] triggers & functions

2000-01-12 Thread Sarah Officer
Hi, I'm porting a database from Oracle, and I'm having difficulty working out the syntax & logic for porting the triggers. Here's an example of what I have in Oracle: create table Images ( id varchar(100) PRIMARY KEY, title varchar(25)NOT NULL, filepath va