| From: | David Christensen <david(dot)christensen(at)crunchydata(dot)com> |
|---|---|
| To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | CREATE ROLE IF NOT EXISTS |
| Date: | 2021-10-19 20:12:30 |
| Message-ID: | CAOxo6XJy5_fUT4uDo2251Z_9whzu0JJGbtDgZKqZtOT9KhOKiQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| CREATE-ROLE-IF-NOT-EXISTS.patch | application/octet-stream | 12.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Erik Rijkers | 2021-10-19 20:16:06 | Re: Postgres perl module namespace |
| Previous Message | Tom Lane | 2021-10-19 19:53:54 | Re: Inconsistent behavior of pg_dump/pg_restore on DEFAULT PRIVILEGES |