pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: postgres_fdw and column casting shippability
Date: Mon, 15 May 2017 18:22:48 -0400
Message-ID: <22431.1494886968@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMkU=1wuSiR++ujs-O+eAATcOm7MkQGJ1SLBHbDVy7C8TBz8UA@mail.gmail.com>
References: <CAMkU=1wuSiR++ujs-O+eAATcOm7MkQGJ1SLBHbDVy7C8TBz8UA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Jeff Janes <jeff.janes@gmail.com> writes:
> I've tried versions 9.6.3 and 10dev, and neither do what I expected.  It
> doesn't seem to be a planning problem where it thinks the fast plan is
> slower, it just doesn't seem to consider the faster plans as being options
> at all.  Is there some setting to make it realize the cast is shippable?

AFAICS, postgres_fdw doesn't have any knowledge of CoerceViaIO parse
nodes, so it's never going to consider this type of brute-force cast
as shippable.  Normal casts would presumably be shippable if the
underlying function is considered safe.

Looks like a round-tuit-shortage issue rather than anything fundamental.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (3+ messages)  latest in thread

Message-ID: <22431.1494886968@sss.pgh.pa.us>
Permalink:  ../22431.1494886968@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22431.1494886968@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff.janes@gmail.com
  Subject: Re: postgres_fdw and column casting shippability
  In-Reply-To: <22431.1494886968@sss.pgh.pa.us>

* 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