how to get postgres user name code example Example: postgresql get current user name SELECT current_user;