0

I know about the users in postgres but don't have correct idea about them. The difference I know is

  • Authenticated user - The user who enters his credentials to login into postgres database.
  • Session user - The user who owns the session but I am confused whats the difference between session and auth user
  • Outer user - It's something related to function definer but don't have exact idea
  • Current user - The person who is executing the query

Can someone correct me in the above definitions and if some example can be given it will also be helpful

asked Apr 4, 2024 at 17:58

1 Answer 1

1

"Authenticated user" is the same as "session user", except that the latter can be changed with SET SESSION AUTHORIZATION by a superuser. The "current user" is the currently active role and can be changed with SET ROLE and by executing a SECURITY DEFINER function. I have never heard of an "outer user".

answered Apr 5, 2024 at 6:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.