postgresql/src/bin/scripts
Tom Lane 3945b61932 Improve handling of password reuse in src/bin/scripts programs.
This reverts most of commit 83dec5a71 in favor of having connectDatabase()
store the possibly-reusable password in a static variable, similar to the
coding we've had for a long time in pg_dump's version of that function.
To avoid possible problems with unwanted password reuse, make callers
specify whether it's reasonable to attempt to re-use the password.
This is a wash for cases where re-use isn't needed, but it is far simpler
for callers that do want that.  Functionally there should be no difference.

Even though we're past RC1, it seems like a good idea to back-patch this
into 9.5, like the prior commit.  Otherwise, if there are any third-party
users of connectDatabase(), they'll have to deal with an API change in
9.5 and then another one in 9.6.

Michael Paquier
2015-12-23 15:45:43 -05:00
..
po Translation updates 2015-11-09 10:21:11 -05:00
t pgindent run for 9.5 2015-05-23 21:35:49 -04:00
.gitignore Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
clusterdb.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
common.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
common.h Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
createdb.c Use appendStringInfoString/Char et al where appropriate. 2015-07-02 12:36:31 +03:00
createlang.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
createuser.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
dropdb.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
droplang.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
dropuser.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
Makefile Fix parallel make risk with new check temp-install setup 2015-04-29 20:34:22 -04:00
nls.mk Translation updates 2014-12-15 00:25:35 -05:00
pg_isready.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
reindexdb.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00
vacuumdb.c Improve handling of password reuse in src/bin/scripts programs. 2015-12-23 15:45:43 -05:00