I'm in TODO mood today ...
Bruce Momjian <bruce@momjian.us>
I'm in TODO mood today ... * Document/trigger/rule so changes to pg_shadow recreate pg_pwd I did it with a trigger and it seems to work like a charm. The function that already updates the file for create and alter user has been made a built-in "SQL" function and a trigger is created at initdb time. Comments around the pg_pwd updating function seem to be worried about this routine being called concurrently, but I really don't see a reason to worry about this. Verify for yourself. I guess we never had a system trigger before, so treat this with care, and feel free to adjust the nomenclature as well. -- Peter Eisentraut Sernanders väg 10:115
Files
| Path | Change | +/− |
|---|---|---|
| doc/TODO | modified | +1 −1 |
| src/backend/commands/user.c | modified | +9 −4 |
| src/bin/initdb/initdb.sh | modified | +5 −1 |
| src/include/catalog/pg_proc.h | modified | +3 −1 |