Postgresql Check If Role Exists

[Solved] Postgresql Check If Role Exists | Php - Code Explorer | yomemimo.com
Question : postgresql check if role exists

Answered by : emmanuel-mahuni

psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='USR_NAME'"

Source : https://stackoverflow.com/questions/8546759/how-to-check-if-a-postgres-user-exists | Last Update : Fri, 27 May 22

Answers related to postgresql check if role exists

Code Explorer Popular Question For Php