pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: postgres_fdw: Clean up handling of system columns.
Date: Fri, 15 Apr 2016 16:08:27 +0000
Message-ID: <E1ar6IF-00022U-Ci@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

postgres_fdw: Clean up handling of system columns.

Previously, querying the xmin column of a single postgres_fdw foreign
table fetched the tuple length, xmax the typmod, and cmin or cmax the
composite type OID of the tuple.  However, when you queried several
such tables and the join got shipped to the remote side, these columns
ended up containing the remote values of the corresponding columns.
Both behaviors are rather unprincipled, the former for obvious reasons
and the latter because the remote values of these columns don't have
any local significance; our transaction IDs are in a different space
than those of the remote machine.  Clean this up by setting all of
these fields to 0 in both cases.  Also fix the handling of tableoid
to be sane.

Robert Haas and Ashutosh Bapat, reviewed by Etsuro Fujita.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/da7d44b627ba839de32c9409aca659f60324de76

Modified Files
--------------
contrib/postgres_fdw/deparse.c                 | 46 +++++++++++++++++++++++++-
contrib/postgres_fdw/expected/postgres_fdw.out | 42 +++++++++++------------
contrib/postgres_fdw/postgres_fdw.c            | 12 +++++++
3 files changed, 78 insertions(+), 22 deletions(-)


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


Message-ID: <E1ar6IF-00022U-Ci@gemulon.postgresql.org>
Permalink:  ../E1ar6IF-00022U-Ci@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ar6IF-00022U-Ci@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: rhaas@postgresql.org
  Subject: Re: pgsql: postgres_fdw: Clean up handling of system columns.
  In-Reply-To: <E1ar6IF-00022U-Ci@gemulon.postgresql.org>
  References: <E1ar6IF-00022U-Ci@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