Re: [v9.3] writable foreign tables
Kohei KaiGai <kaigai@kaigai.gr.jp>
From: Kohei KaiGai <kaigai@kaigai.gr.jp>
To: Atri Sharma <atri.jiit@gmail.com>
Cc: Albe Laurenz <laurenz.albe@wien.gv.at>, "Alexander Korotkov *EXTERN*" <aekorotkov@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, PgHacker <pgsql-hackers@postgresql.org>, Shigeru Hanada <shigeru.hanada@gmail.com>
Date: 2012-11-15T17:53:46Z
Lists: pgsql-hackers
Attachments
- pgsql-v9.3-writable-fdw-poc.v4.patch (application/octet-stream) patch v9
The attached patch is just a refreshed version for clean applying to the latest tree. As previous version doing, it makes pseudo enhancement on file_fdw to print something about the supplied tuple on INSERT, UPDATE and DELETE statement. Here is one other idea. My GPU acceleration module (PG-Strom) implements column-oriented data store underlying foreign table. It might make sense to cut out this portion for proof-of-concept of writable foreign tables. Any ideas? 2012/11/8 Atri Sharma <atri.jiit@gmail.com>: > > > On 08-Nov-2012, at 13:35, "Albe Laurenz" <laurenz.albe@wien.gv.at> wrote: > >> Alexander Korotkov wrote: >>> 2) You wrote that FDW can support or don't support write depending on >> having corresponding functions. >>> However it's likely some tables of same FDW could be writable while >> another are not. I think we should >>> have some mechanism for FDW telling whether particular table is >> writable. >> >> I think that this would best be handled by a table option, >> if necessary. >> That allows maximum flexibility for the design of the FDW. >> In many cases it might be enough if the foreign data source >> raises an error on a write request. >> >> Yours, >> Laurenz Albe >> >> >> -- >> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-hackers > > +1 > > I agree, we should have a system where if the foreign data source raises an error on write, FDW can raise corresponding error on PostgreSQL side.exposing this as a table option is IMHO a bit risky, and the user may not know whether the foreign data source will accept writes or not. > > Atri -- KaiGai Kohei <kaigai@kaigai.gr.jp>
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix postgres_fdw's issues with inconsistent interpretation of data values.
- cc3f281ffb0a 9.3.0 cited