pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Field conninfo strings throughout src/bin/scripts.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
master

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

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 26 +++++++++++++-------------
src/bin/scripts/vacuumdb.c   | 44 +++++++++++++++++++++-----------------------
5 files changed, 40 insertions(+), 42 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/640768ceb6caec39fd4bcb3efa070fcb17ce6cd2

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 26 +++++++++++++-------------
src/bin/scripts/vacuumdb.c   | 44 +++++++++++++++++++++-----------------------
5 files changed, 40 insertions(+), 42 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 24 ++++++++++++------------
src/bin/scripts/vacuumdb.c   | 12 ++++++------
5 files changed, 24 insertions(+), 24 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/05abd3bcfe4e8742208b5c766be60feef73bb0ef

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 24 ++++++++++++------------
src/bin/scripts/vacuumdb.c   |  4 ++--
5 files changed, 20 insertions(+), 20 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
REL9_2_STABLE

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

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 24 ++++++++++++------------
src/bin/scripts/vacuumdb.c   |  4 ++--
5 files changed, 20 insertions(+), 20 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Field conninfo strings throughout src/bin/scripts.
@ 2016-08-08 14:10 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2016-08-08 14:10 UTC (permalink / raw)
  To: pgsql-committers

Field conninfo strings throughout src/bin/scripts.

These programs nominally accepted conninfo strings, but they would
proceed to use the original dbname parameter as though it were an
unadorned database name.  This caused "reindexdb dbname=foo" to issue an
SQL command that always failed, and other programs printed a conninfo
string in error messages that purported to print a database name.  Fix
both problems by using PQdb() to retrieve actual database names.
Continue to print the full conninfo string when reporting a connection
failure.  It is informative there, and if the database name is the sole
problem, the server-side error message will include the name.  Beyond
those user-visible fixes, this allows a subsequent commit to synthesize
and use conninfo strings without that implementation detail leaking into
messages.  As a side effect, the "vacuuming database" message now
appears after, not before, the connection attempt.  Back-patch to 9.1
(all supported versions).

Reviewed by Michael Paquier and Peter Eisentraut.

Security: CVE-2016-5424

Branch
------
REL9_1_STABLE

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

Modified Files
--------------
src/bin/scripts/clusterdb.c  |  4 ++--
src/bin/scripts/createlang.c |  4 ++--
src/bin/scripts/droplang.c   |  4 ++--
src/bin/scripts/reindexdb.c  | 20 ++++++++++----------
src/bin/scripts/vacuumdb.c   |  4 ++--
5 files changed, 18 insertions(+), 18 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2016-08-08 14:10 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>
2016-08-08 14:10 pgsql: Field conninfo strings throughout src/bin/scripts. Noah Misch <noah@leadboat.com>

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