Re: Allow FDW extensions to support MERGE command via CustomScan - Mailing list pgsql-hackers

From Önder Kalacı
Subject Re: Allow FDW extensions to support MERGE command via CustomScan
Date
Msg-id CACawEhXnYtEBhQua7r+F0xLKWCXZc6-Vib68dXCA20mQs+WbPw@mail.gmail.com
Whole thread Raw
In response to Re: Allow FDW extensions to support MERGE command via CustomScan  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Allow FDW extensions to support MERGE command via CustomScan
List pgsql-hackers
Hi Alvaro, all

> IMO this is a bad plan.  It'll become _the_ way to run MERGE on foreign
> tables, which will become a selling point for proprietary FDWs, and
> nobody will be motivated to write the code to implement the long-term
> plan you were describing.
>
> In short, -1 from me.
>

I see your point, but this seems like an artificial limitation in Postgres. The parser usually doesn’t impose such restrictions, so it’s hard to understand why FDWs should be treated differently. If someone really wanted to work around this today, they could hack Postgres and avoid the limitation anyway.

Our goal here is to follow the spirit of custom scans: enable experimentation and see what works. This approach doesn’t close the door to a more complete, native implementation later—it just creates a more natural path forward in the meantime.Thanks,

Onder

pgsql-hackers by date:

Previous
From: Zaid Shabbir
Date:
Subject: OLEDB provider for PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: Recovering from detoast-related catcache invalidations