Tweak pg_dumpall to add GRANT CONNECT ON DATABASE ... TO PUBLIC when dumping

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 34615ce73d2adc4f2ac14534108a31a8ccfe7325
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-01-04T17:49:42Z
Releases: 8.2.1
Tweak pg_dumpall to add GRANT CONNECT ON DATABASE ... TO PUBLIC when dumping
database privileges from a pre-8.2 server.  This ensures that the reloaded
database will maintain the same behavior it had in the previous installation,
ie, everybody has connect privilege.  Per gripe from L Bayuk.

Files

PathChange+/−
src/bin/pg_dump/dumputils.c modified +15 −1