Re: CREATE ROLE IF NOT EXISTS

From: David Christensen <david(dot)christensen(at)crunchydata(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CREATE ROLE IF NOT EXISTS
Date: 2021-11-22 13:47:41
Message-ID: CAOxo6XKKyGD3bMzq=XmjE1RUB0=mDWp5b1PxR8S-Et5C_Pdvvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 22, 2021 at 6:49 AM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:

> > On 10 Nov 2021, at 18:14, David Christensen <
> david(dot)christensen(at)crunchydata(dot)com> wrote:
>
> > Modulo other issues/discussions, here is a version of this patch..
>
> This patch fails to compile since you renamed the if_not_exists member in
> CreateRoleStmt but still set it in the parser.
>

D'oh! Enclosed is a fixed/rebased version.

Best,

David

Attachment Content-Type Size
CREATE-OR-REPLACE-ROLE-v2.patch application/octet-stream 11.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2021-11-22 13:57:56 Re: rand48 replacement
Previous Message Laurenz Albe 2021-11-22 13:09:52 Re: Sequence's value can be rollback after a crashed recovery.