Re: TRIGGER on a FOREIGN Table? - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: TRIGGER on a FOREIGN Table?
Date
Msg-id 5031db5a11ea0e29b16b4a08e7dd0a3f67f55444.camel@cybertec.at
Whole thread Raw
In response to TRIGGER on a FOREIGN Table?  (Sbob <sbob@quadratum-braccas.com>)
Responses Re: TRIGGER on a FOREIGN Table?
List pgsql-admin
On Mon, 2023-11-06 at 21:15 -0700, Sbob wrote:
> does anyone know: can I create a trigger on a foreign table? I suspect I
> have to create the trigger on the remote / source table yes?

You can create a trigger on a foreign table.  But don't get confused:

- the trigger will run locally, not on the remote database
- the trigger will not run if the table on the remote database is modified

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Re: Frequent failover
Next
From: Ron
Date:
Subject: Re: Frequent failover