Writable FDW: returning clauses. - Mailing list pgsql-hackers

From Ronan Dunklau
Subject Writable FDW: returning clauses.
Date
Msg-id 1998900.iCqX4bAbQN@ropc
Whole thread Raw
Responses Re: Writable FDW: returning clauses.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello.

While implementing the new writable API for FDWs, I wondered wether they 
are any obvious problems with the following behavior for handling returning 
clauses (for the delete case).

The goal is to fetch all required attributes during the initial scan, and 
avoid fetching data on the delete operation itself.

- in the AddForeignUpdateTargets hook, add resjunk entries for the columns in 
the returning clause
- in the ExecForeignDelete hook, fill the returned slot with values taken from 
the planSlot.


--
Ronan Dunklau

pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Identity projection
Next
From: Heikki Linnakangas
Date:
Subject: Re: backward incompatible pg_basebackup and pg_receivexlog