Implement differentiation between CURRENT_USER and SESSION_USER as per SQL.
Peter Eisentraut <peter_e@gmx.net>
Implement differentiation between CURRENT_USER and SESSION_USER as per SQL. There is still no effective difference but it will kick in once setuid functions exist (not included here). Make old getpgusername() alias for current_user.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +1 −6 |
| doc/src/sgml/func.sgml | modified | +55 −0 |
| src/backend/commands/user.c | modified | +2 −2 |
| src/backend/parser/gram.y | modified | +4 −4 |
| src/backend/utils/adt/name.c | modified | +16 −8 |
| src/backend/utils/init/miscinit.c | modified | +60 −28 |
| src/backend/utils/init/postinit.c | modified | +3 −3 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +9 −3 |
| src/include/miscadmin.h | modified | +8 −4 |
| src/include/utils/builtins.h | modified | +3 −2 |
| src/test/regress/expected/rules.out | modified | +3 −3 |