Re: PostgreSQL FDW update - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostgreSQL FDW update
Date
Msg-id 13785.1298302272@sss.pgh.pa.us
Whole thread Raw
In response to PostgreSQL FDW update  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: PostgreSQL FDW update  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> I needed something to test the FDW API patch with, and didn't want to 
> get involved in the COPY API changes, and also wanted to have something 
> that needs real connection management and can push down quals. So I 
> updated the postgresql_fdw patch to work with the latest FDW patch.

> Here. It's a bit of a mess, but it works for simple queries..

I'm going to set this CF item back to Waiting on Author, because (a)
there doesn't seem to be an actual concrete patch presented at the
moment, only a stack of hard-to-follow deltas, and (b) the patch
certainly needs updates for the extension mechanism and committed
FDW API anyway.

> It requires a small change to the FDW api 
> (fdw-api-add-serverid-userid.patch). I added server oid and user oid 
> fields to the FdwPlan - that seems like basic information that most 
> FDW's will need, so it seems awkward to require the FDW to wrap them in 
> Const nodes and a List.

FYI, I removed those fields from the committed API patch.  I don't
think it's a good idea to cache potentially-changeable things in a
plan node when you can perfectly well fetch them at runtime.  Caching
user OID is flat wrong anyway, as there's no guarantee that a cached
plan will be executed under the same userid it was made with.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Sync Rep v17
Next
From: Alvaro Herrera
Date:
Subject: Re: Snapshot synchronization, again...