pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Introduce a psql "\connect -reuse-previous=on|off" option.
Date: Mon, 08 Aug 2016 14:10:48 +0000
Message-ID: <E1bWlGS-0006nM-9T@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Introduce a psql "\connect -reuse-previous=on|off" option.

The decision to reuse values of parameters from a previous connection
has been based on whether the new target is a conninfo string.  Add this
means of overriding that default.  This feature arose as one component
of a fix for security vulnerabilities in pg_dump, pg_dumpall, and
pg_upgrade, so back-patch to 9.1 (all supported versions).  In 9.3 and
later, comment paragraphs that required update had already-incorrect
claims about behavior when no connection is open; fix those problems.

Security: CVE-2016-5424

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6655c07574f2c966ad17e8cc21e9d399f07266f7

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml |  21 ++++----
src/bin/psql/command.c         | 109 ++++++++++++++++++++++++++++-------------
src/bin/psql/startup.c         |   2 +-
3 files changed, 88 insertions(+), 44 deletions(-)


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


view thread (6+ messages)  latest in thread

Message-ID: <E1bWlGS-0006nM-9T@gemulon.postgresql.org>
Permalink:  ../E1bWlGS-0006nM-9T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bWlGS-0006nM-9T@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: noah@leadboat.com
  Subject: Re: pgsql: Introduce a psql "\connect -reuse-previous=on|off" option.
  In-Reply-To: <E1bWlGS-0006nM-9T@gemulon.postgresql.org>
  References: <E1bWlGS-0006nM-9T@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