postgresql see the usernames

View the user name of the current connection: 

 

foo=#select * from current_user;

 

 

foo=#select user;

 

View all Username: 

foo = # \ you

 

 

Before users can view the management Bowen:

https://www.cnblogs.com/ryanzheng/p/9427126.html

 

Guess you like

Origin www.cnblogs.com/ryanzheng/p/11229419.html