Writable FDW: returning clauses.

From: Ronan Dunklau <rdunklau(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Writable FDW: returning clauses.
Date: 2013-03-19 09:37:03
Message-ID: 1998900.iCqX4bAbQN@ropc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-03-19 11:39:26 Re: backward incompatible pg_basebackup and pg_receivexlog
Previous Message Kyotaro HORIGUCHI 2013-03-19 08:45:58 Re: Identity projection