Skip to content

Commit

Permalink
Fix readme language to be more consistent
Browse files Browse the repository at this point in the history
References to `set_user(text)` and `set_user_u(text)` have been changed
from `set_user('rolename')` and `set_user_u('rolename') to
`set_user(text)` and `set_user_u(text)`, in contexts where the
functions are being referenced and not called. This makes the README
easier to follow.
  • Loading branch information
scrummyin authored and mpalmi committed Jun 28, 2018
1 parent 91cca0f commit 0534fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ This PostgreSQL extension allows switching users and optional privilege
escalation with enhanced logging and control. It provides an additional layer of
logging and control when unprivileged users must escalate themselves to
superuser or object owner roles in order to perform needed maintenance tasks.
Specifically, when an allowed user executes `set_user('rolename')` or
`set_user_u('rolename')`, several actions occur:
Specifically, when an allowed user executes `set_user(text)` or
`set_user_u(text)`, several actions occur:

* The current effective user becomes `rolename`.
* The role transition is logged, with a specific notation if `rolename` is a
Expand Down Expand Up @@ -236,7 +236,7 @@ For the blocking of `ALTER SYSTEM` and `COPY PROGRAM` to work properly, you must
include `set_user` in shared_preload_libraries in postgresql.conf and restart
PostgreSQL.

Neither `set_user('rolename')` nor `set_user_u('rolename')` may be executed from
Neither `set_user(text)` nor `set_user_u(text)` may be executed from
within an explicit transaction block.

## Caveats
Expand Down

0 comments on commit 0534fb5

Please sign in to comment.