Is there some way to create a user/role/group in PostgreSQL via SQL only if it does not exist yet? The only solution I have found so far is creating a custom stored procedure, since that supports conditionals. Is there a simpler solution that I have overlooked? Thank you!
Asked by Jakub Holý
(164 rep)
Oct 29, 2021, 08:19 AM
Last activity: Jan 10, 2025, 10:04 PM
Last activity: Jan 10, 2025, 10:04 PM