Re: Triggers on foreign tables - Mailing list pgsql-hackers

From Kohei KaiGai
Subject Re: Triggers on foreign tables
Date
Msg-id CADyhKSXnoPPgEz51k=n-4Oa3WGo9qAxLO+_XN2YYD5WsSGP2FQ@mail.gmail.com
Whole thread Raw
In response to Re: Triggers on foreign tables  (Jim Nasby <jim@nasby.net>)
List pgsql-hackers
> What happens if someone changes the record on the foreign side between when
> we've read it and we do the UPDATE?
>
Concurrency control is job of FDW driver. It has to coordinate access to
the records to be fetched for update / delete.
In fact, postgres_fdw add "FOR UPDATE" to avoid concurrent update
when it issues 1st-stage query to remote server.

Thanks,
-- 
KaiGai Kohei <kaigai@kaigai.gr.jp>



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Patch: FORCE_NULL option for copy COPY in CSV mode
Next
From: Pavel Stehule
Date:
Subject: Re: pg_system_identifier()