From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
Cc: | sfrost(at)snowman(dot)net, shigeo(dot)hirose(at)toshiba(dot)co(dot)jp, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: How can I pushdown of functions used in targetlist with FDW ? |
Date: | 2020-01-10 01:25:20 |
Message-ID: | 20250.1578619520@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> writes:
> At Thu, 09 Jan 2020 14:12:25 -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote in
>> If SQL/MED has a notion of a "foreign function" that is only executable on
>> the remote side, and that fails if you try to execute it locally, then
>> it'd make sense to implement that feature and then expect postgres_fdw to
>> try hard to push down such calls. But we don't have that (yet). I'm
>> unconvinced that ordinary functions ought to be treated as if remote
>> execution is preferable.
> Isn't ROUTING MAPPING [1] that? Definers should define one at their
> own risk as table constraints are.
Hmm. It looks like that patch is moribund, and I can't say that I'm
excited about reviving it. Aside from the syntactical reserved-word
problems, it seems like a mighty heavyweight way of attacking the issue
--- that is, instead of a property directly attached to the function of
interest, you've now got this entire other system catalog structure that
has to be searched for relevant information. And that needs all the usual
support for a new object type, eg ALTER infrastructure, pg_dump support,
etc etc etc.
Plus, once you've created a mapping, it's only good for one server so you
have to do it over again for each server. I guess in the general case
you have to have that, but I'd sure want some kind of shortcut for the
common case where e.g. ABS() means the same thing everywhere.
The SQL committee do love verbosity, don't they.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Peter | 2020-01-10 02:23:42 | Re: 12.1 not useable: clientlib fails after a dozen queries (GSSAPI ?) |
Previous Message | Kyotaro Horiguchi | 2020-01-10 01:07:48 | Re: How can I pushdown of functions used in targetlist with FDW ? |