Re: Implementing IF NOT EXISTS clause for all CREATE TYPE variants

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Bram Hagens <bram(at)bramh(dot)me>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Implementing IF NOT EXISTS clause for all CREATE TYPE variants
Date: 2025-10-12 17:59:27
Message-ID: CAKFQuwbmtY41Pj1WvF_JYFeUQDKfo7op6ijY5R2tJgw5ppPHGg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Oct 12, 2025 at 1:45 PM Bram Hagens <bram(at)bramh(dot)me> wrote:

> I don't see an immediate reason why this has not been implemented, and
> also did
> not find anything on the mailing list archives. I would like to try my
> hand at
> implementing this. As this would be my first contribution, I would like to
> discuss what changes would have to be made.
>

The following thread provides some history relevant to this kind of patch:

https://www.postgresql.org/message-id/flat/903090.1648773031%40sss.pgh.pa.us#93e40bfc6f1c0aed9b1d8e5072cc04c2

I tend to fall into the camp of allowing these tools and expecting users to
utilize them properly.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2025-10-12 18:00:00 Re: Potential deadlock in pgaio_io_wait()
Previous Message Bram Hagens 2025-10-12 17:45:11 Implementing IF NOT EXISTS clause for all CREATE TYPE variants