Re: Questions and experiences writing a Foreign Data Wrapper

Albe Laurenz <laurenz.albe@wien.gv.at>

From: "Albe Laurenz" <laurenz.albe@wien.gv.at>
To: "Heikki Linnakangas *EXTERN*" <heikki.linnakangas@enterprisedb.com>
Cc: "Tom Lane *EXTERN*" <tgl@sss.pgh.pa.us>, <pgsql-hackers@postgresql.org>
Date: 2011-07-22T12:09:35Z
Lists: pgsql-hackers

Attachments

Heikki Linnakangas wrote:
>> I guess I misunderstood the concept of user mapping.

>> I guess it is time to read my SQL Standard, but some clarification
>> in the documentation sure wouldn't hurt.
>
> Agreed, there doesn't seem to be any documentation on user mappings,
> aside from the reference page for the CREATE USER MAPPING command. The
> "5.10 Foreign Data" section should explain what user mappings are.
Want
> to give it a shot?

Sure, see the attached 'fdw-usermapping-doc.patch'.

I also include a 'fdw-scan-doc.patch' that tells FDW implementors *not*
to start the scan in BeginForeignScan.

Yours,
Laurenz Albe