Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql check if role exists

psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='USR_NAME'"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #check #role #exists
ADD COMMENT
Topic
Name
1+5 =