Flat file cleanup phase 2: make it work for pg_group. The flat group

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

Commit: 3f9aec50e7e31ab8acd596a016e0dd0a1dd5e29c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-02-20T04:45:59Z
Releases: 8.1.0
Flat file cleanup phase 2: make it work for pg_group.  The flat group
file now identifies group members by usesysid not name; this avoids
needing to depend on SearchSysCache which we can't use during startup.
(The old representation was entirely broken anyway, since we did not
regenerate the file following RENAME USER.)  It's only a 95% solution
because if the group membership list is big enough to be toasted out
of line, we cannot read it during startup.  I think this will do for
the moment, until we have time to implement the planned pg_role
replacement for pg_group.

Files

PathChange+/−
src/backend/libpq/crypt.c modified +12 −10
src/backend/libpq/hba.c modified +16 −11
src/backend/utils/init/flatfiles.c modified +76 −89