postgresql 查看用户名

查看当前连接的用户名: 

 

root_db=#select * from current_user;

 

 

 

root_db=#select user;

 

查看所有用户名: 

root_db=#\du

 

 

 

 

 

posted @ 2019-10-21 15:27  OriginalT  阅读(1917)  评论(0编辑  收藏  举报