Thread: pgsql: Flat file cleanup phase 2: make it work for pg_group.

pgsql: Flat file cleanup phase 2: make it work for pg_group.

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/libpq:
        crypt.c (r1.61 -> r1.62)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/crypt.c.diff?r1=1.61&r2=1.62)
        hba.c (r1.138 -> r1.139)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/hba.c.diff?r1=1.138&r2=1.139)
    pgsql/src/backend/utils/init:
        flatfiles.c (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/flatfiles.c.diff?r1=1.1&r2=1.2)