]> granicus.if.org Git - postgresql/commit
Introduce a psql "\connect -reuse-previous=on|off" option.
authorNoah Misch <noah@leadboat.com>
Mon, 8 Aug 2016 14:07:46 +0000 (10:07 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 8 Aug 2016 14:07:50 +0000 (10:07 -0400)
commit6655c07574f2c966ad17e8cc21e9d399f07266f7
tree3afc5caa495dc68f557e6f083a96cb4e6949c2ea
parentdb951dd1959fb6032c97a81a33139125c85a59fb
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
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/startup.c