pgsql/src/backend/catalog (aclchk.c)

From: Peter Eisentraut - PostgreSQL <petere>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/catalog (aclchk.c)
Date: 2000-09-06 14:15:16
Message-ID: 200009061415.e86EFGv03914@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Wednesday, September 6, 2000 @ 10:15:15
Author: petere

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/catalog
from hub.org:/home/projects/pgsql/tmp/cvs-serv3236/src/backend/catalog

Modified Files:
aclchk.c

----------------------------- Log Message -----------------------------

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.

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2000-09-06 14:15:17 pgsql/src/backend/commands (analyze.c command.c comment.c copy.c dbcommands.c indexcmds.c remove.c rename.c sequence.c trigger.c vacuum.c)
Previous Message Peter Eisentraut - PostgreSQL 2000-09-06 14:15:14 pgsql/src/backend/bootstrap (bootstrap.c)