pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: In postgres_fdw, allow CASE expressions to be pushed to the remo
Date: Fri, 30 Jul 2021 17:39:59 +0000
Message-ID: <E1m9WUJ-0000tM-Gz@gemulon.postgresql.org> (raw)

In postgres_fdw, allow CASE expressions to be pushed to the remote server.

This is simple enough except for the need to check whether CaseTestExpr
nodes have a collation that is not derived from a remote Var.  For that,
examine the CASE's "arg" expression and then pass that info down into the
recursive examination of the WHEN expressions.

Alexander Pyhalov, reviewed by Gilles Darold and myself

Discussion: https://postgr.es/m/fda09032e90d85d9b726a41e03f9097f@postgrespro.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5d44fff01eebfe0c7a118326605864e662a44f46

Modified Files
--------------
contrib/postgres_fdw/deparse.c                 | 212 +++++++++++++++++++++++--
contrib/postgres_fdw/expected/postgres_fdw.out |  90 +++++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql      |  29 ++++
3 files changed, 315 insertions(+), 16 deletions(-)



Message-ID: <E1m9WUJ-0000tM-Gz@gemulon.postgresql.org>
Permalink:  ../E1m9WUJ-0000tM-Gz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m9WUJ-0000tM-Gz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: In postgres_fdw, allow CASE expressions to be pushed to the remo
  In-Reply-To: <E1m9WUJ-0000tM-Gz@gemulon.postgresql.org>
  References: <E1m9WUJ-0000tM-Gz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox