]> granicus.if.org Git - postgresql/commit
Code cleanup of user name and user id handling in the backend. The current
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 6 Sep 2000 14:15:31 +0000 (14:15 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 6 Sep 2000 14:15:31 +0000 (14:15 +0000)
commit6dc249610a87aa8b9dcc8baf4e64d2e14d02f548
tree6ca1b864625ecf91a2887c8031a9fa91b5f9c5c5
parentdaf1e3a7026e367d630be3ac34ac0a9e7cf1340f
Code cleanup of user name and user id handling in the backend. The current
user is now defined in terms of the user id, the user name is only computed
upon request (for display purposes). This is kind of the opposite of the
previous state, which would maintain the user name and compute the user id
for permission checks.

Besides perhaps saving a few cycles (integer vs string), this now creates a
single point of attack for changing the user id during a connection, for
purposes of "setuid" functions, etc.
28 files changed:
src/backend/bootstrap/bootstrap.c
src/backend/catalog/aclchk.c
src/backend/commands/analyze.c
src/backend/commands/command.c
src/backend/commands/comment.c
src/backend/commands/copy.c
src/backend/commands/dbcommands.c
src/backend/commands/indexcmds.c
src/backend/commands/remove.c
src/backend/commands/rename.c
src/backend/commands/sequence.c
src/backend/commands/trigger.c
src/backend/commands/vacuum.c
src/backend/executor/execMain.c
src/backend/main/main.c
src/backend/postmaster/postmaster.c
src/backend/rewrite/locks.c
src/backend/rewrite/rewriteHandler.c
src/backend/tcop/postgres.c
src/backend/tcop/utility.c
src/backend/utils/init/globals.c
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/misc/superuser.c
src/include/commands/rename.h
src/include/miscadmin.h
src/include/tcop/tcopprot.h
src/include/utils/acl.h