From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add a new DestReceiver for printing tuples without catalog acces
Date: Tue, 24 Jan 2017 21:57:47 +0000
Message-ID: <E1cW963-0007vF-8P@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add a new DestReceiver for printing tuples without catalog access.
If you create a DestReciver of type DestRemote and try to use it from
a replication connection that is not bound to a specific daabase, or
any other hypothetical type of backend that is not bound to a specific
database, it will fail because it doesn't have a pg_proc catalog to
look up properties of the types being printed. In general, that's
an unavoidable problem, but we can hardwire the properties of a few
builtin types in order to support utility commands. This new
DestReceiver of type DestRemoteSimple does just that.
Patch by me, reviewed by Michael Paquier.
Discussion: http://postgr.es/m/CA+TgmobNo4qz06wHEmy9DszAre3dYx-WNhHSCbU9SAwf+9Ft6g@mail.gmail.com
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a84069d9350400c860d5e932b50dfd337aa407b0
Modified Files
--------------
src/backend/access/common/Makefile | 4 +-
src/backend/access/common/printsimple.c | 110 ++++++++++++++++++++++++++++++++
src/backend/tcop/dest.c | 12 ++++
src/include/access/printsimple.h | 23 +++++++
src/include/tcop/dest.h | 1 +
5 files changed, 148 insertions(+), 2 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Add a new DestReceiver for printing tuples without catalog acces
In-Reply-To: <E1cW963-0007vF-8P@gemulon.postgresql.org>
References: <E1cW963-0007vF-8P@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