CREATE ROLE IF NOT EXISTS - Mailing list pgsql-hackers

From David Christensen
Subject CREATE ROLE IF NOT EXISTS
Date
Msg-id CAOxo6XJy5_fUT4uDo2251Z_9whzu0JJGbtDgZKqZtOT9KhOKiQ@mail.gmail.com
Whole thread Raw
Responses Re: CREATE ROLE IF NOT EXISTS  (Isaac Morland <isaac.morland@gmail.com>)
Re: CREATE ROLE IF NOT EXISTS  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
Greetings -hackers,

Enclosed is a patch that implements CREATE ROLE IF NOT EXISTS (along with the same support for USER/GROUP).  This is a fairly straightforward approach in that we do no validation of anything other than existence, with the user needing to ensure that permissions/grants are set up in the proper way.

Comments?

Best,

David
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade test chatter
Next
From: Erik Rijkers
Date:
Subject: Re: Postgres perl module namespace