postgresql/src/backend/utils
Tom Lane ea46000a40 Arrange for client authentication to occur before we select a specific
database to connect to. This is necessary for the walsender code to work
properly (it was previously using an untenable assumption that template1 would
always be available to connect to).  This also gets rid of a small security
shortcoming that was introduced in the original patch to eliminate the flat
authentication files: before, you could find out whether or not the requested
database existed even if you couldn't pass the authentication checks.

The changes needed to support this are mainly just to treat pg_authid and
pg_auth_members as nailed relations, so that we can read them without having
to be able to locate real pg_class entries for them.  This mechanism was
already debugged for pg_database, but we hadn't recognized the value of
applying it to those catalogs too.

Since the current code doesn't have support for accessing toast tables before
we've brought up all of the relcache, remove pg_authid's toast table to ensure
that no one can store an out-of-line toasted value of rolpassword.  The case
seems quite unlikely to occur in practice, and was effectively unsupported
anyway in the old "flatfiles" implementation.

Update genbki.pl to actually implement the same rules as bootstrap.c does for
not-nullability of catalog columns.  The previous coding was a bit cheesy but
worked all right for the previous set of bootstrap catalogs.  It does not work
for pg_authid, where rolvaliduntil needs to be nullable.

Initdb forced due to minor catalog changes (mainly the toast table removal).
2010-04-20 23:48:47 +00:00
..
adt Fix to_char YYY, YY, Y format codes so that FM zero-suppression really works, 2010-04-07 21:41:53 +00:00
cache Arrange for client authentication to occur before we select a specific 2010-04-20 23:48:47 +00:00
error pgindent run for 9.0 2010-02-26 02:01:40 +00:00
fmgr pgindent run for 9.0 2010-02-26 02:01:40 +00:00
hash pgindent run for 9.0 2010-02-26 02:01:40 +00:00
init Arrange for client authentication to occur before we select a specific 2010-04-20 23:48:47 +00:00
mb Undo some more pgindent breakage. Per buildfarm. 2010-02-27 03:55:52 +00:00
misc Rename standby_keep_segments to wal_keep_segments. 2010-04-20 11:15:06 +00:00
mmgr pgindent run for 9.0 2010-02-26 02:01:40 +00:00
resowner Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
sort pgindent run for 9.0 2010-02-26 02:01:40 +00:00
time pgindent run for 9.0 2010-02-26 02:01:40 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_dummy_probes.sed Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
Gen_fmgrtab.pl Fix genbki.pl and Gen_fmgrtab.pl to use PID-specific temp file names, 2010-01-05 20:23:32 +00:00
Makefile Get rid of the need for manual maintenance of the initial contents of 2010-01-05 01:06:57 +00:00
probes.d Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00