Re: Update foreign table with trigger

From: Leonardo M(dot) Ramé <l(dot)rame(at)griensu(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Update foreign table with trigger
Date: 2016-02-26 19:02:17
Message-ID: 56D0A139.6000007@griensu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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.

--
Leonardo M. Ramé
Medical IT - Griensu S.A.
Av. Colón 636 - Piso 8 Of. A
X5000EPT -- Córdoba
Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19
Cel.: +54 9 (011) 40871877

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2016-02-26 19:15:24 Re: Possible bug in psql 9.4.4
Previous Message Leonardo M. Ramé 2016-02-26 18:59:58 Possible bug in psql 9.4.4