diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-10-26 13:43:28 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-10-26 13:43:28 +0000 |
commit | c3d56155d4a8f6c94d19a5caa91f355cd41eace1 (patch) | |
tree | e8f75cbdb6359209dcfa362bb5c285bba1db64b0 /src/backend/tcop/postgres.c | |
parent | 8f03406ee91406262beb90ce516718e7b860e8d7 (diff) | |
download | postgresql-c3d56155d4a8f6c94d19a5caa91f355cd41eace1.tar.gz postgresql-c3d56155d4a8f6c94d19a5caa91f355cd41eace1.zip |
Properly update the 'group' flatfile when modifying the user, in case
they were added to a group. Also fix visibility of our own changes when
creating the group file. This fixes:
test=> CREATE GROUP g1;
CREATE GROUP
test=> CREATE USER u1 IN GROUP g1;
CREATE USER
test=> \! cat /u/pg/data/global/pg_group
"g1" "u1"
test=> CREATE USER u2 IN GROUP g1;
CREATE USER
test=> \! cat /u/pg/data/global/pg_group
"g1" "u1" "u2"
test=> ALTER USER u2 RENAME TO u3;
ALTER USER
test=> \! cat /u/pg/data/global/pg_group
"g1" "u1" "u3"
[ this code does not exist in CVS head.]
Per report from Dennis Vshivkov
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions