postgresql/src/backend/utils/misc
Peter Eisentraut c0d4d5473a Make the world somewhat safe for (not from) DELETE FROM pg_shadow;
Assign the fixed user id 1 to the user created by initdb.
A stand-alone backend will always set the user id to 1.
(Consequently, the name of that user is no longer important.)

In stand-alone mode, the user id 1 will have implicit superuser
status, to allow repairs even if there are no users defined.

Print a warning message when starting in stand-alone mode when no
users are defined.

Disallow dropping the current user and session user.

Granting/revoking superuser status also grants/revokes usecatupd.
(Previously, it would never grant it back.  This could lead to "deadlocks".)

CREATE USER and CREATE GROUP will start allocating user ids at 100
(unless explicitly specified), to prevent accidental creation of a
superuser (plus some room for future extensions).
2001-09-08 15:24:00 +00:00
..
.cvsignore Keep CVS quiet about derived file guc-file.c. 2000-06-02 00:04:26 +00:00
database.c Replace implementation of pg_log as a relation accessed through the 2001-08-25 18:52:43 +00:00
guc-file.l Check that the data directory does not have group or world access; remove 2001-08-06 13:45:15 +00:00
guc.c Get rid of PID entries in shmem hash table; there is no longer any need 2001-09-07 00:27:30 +00:00
Makefile Add support for VPATH builds, that is, building somewhere else than in the 2000-10-20 21:04:27 +00:00
postgresql.conf.sample Missed a few places that referred to a compile-time limit on 2001-09-07 00:46:42 +00:00
ps_status.c pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
superuser.c Make the world somewhat safe for (not from) DELETE FROM pg_shadow; 2001-09-08 15:24:00 +00:00