Re: Update foreign table with trigger - Mailing list pgsql-general

From Leonardo M. Ramé
Subject Re: Update foreign table with trigger
Date
Msg-id 56D0A52E.7070802@griensu.com
Whole thread Raw
In response to Re: Update foreign table with trigger  (s d <daku.sandor@gmail.com>)
Responses Re: Update foreign table with trigger  (s d <daku.sandor@gmail.com>)
List pgsql-general

El 26/02/16 a las 16:18, s d escribió:
>
> On 26 February 2016 at 20:02, Leonardo M. Ramé <l.rame@griensu.com
> <mailto:l.rame@griensu.com>> wrote:
>
>
>     El 26/02/16 a las 15:55, John R Pierce escribió:
>
>         On 2/26/2016 10:29 AM, Leonardo M. Ramé wrote:
>
>             Hi, I created a Postgres_FDW table (TABLE_A) and need to do
>             an update on that table.
>
>             As TABLE_A has a trigger, and the trigger does an insert on
>             another table (TABLE_B), I had to create another foreign
>             table called TABLE_B, that's ok.
>
>
>
>         that trigger is defined on the server that actually has table_a,
>         right?   or did you define a trigger on the FDW table ?
>
>     Hi John, yes, the trigger is only defined on the foreign server.
>
>
> Let's check we get this right!
> You have two "real" table in the remote server with a trigger doing it's
> job on them and on the local server you have and FDW on each remote
> table. Right?
>

Yes, that's right.


pgsql-general by date:

Previous
From: s d
Date:
Subject: Re: Update foreign table with trigger
Next
From: s d
Date:
Subject: Re: Update foreign table with trigger