public inbox for [email protected]
help / color / mirror / Atom feedFrom: Robert Haas <[email protected]>
To: Alvaro Herrera <[email protected]>
Cc: Rushabh Lathia <[email protected]>
Cc: Ashutosh Bapat <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints
Date: Mon, 24 Mar 2025 13:47:50 -0400
Message-ID: <CA+TgmoYV3fKfKMg07aP7fm97i3xmG7OA7MUDOZeHPAJsZ2B8-g@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CA+Tgmoas-yno4Lv5azpeg2YXqbtLP52BPrQjEcdhXmQ8iAB=yA@mail.gmail.com>
<[email protected]>
On Mon, Mar 24, 2025 at 12:29 PM Alvaro Herrera <[email protected]> wrote:
> > Again, I'm not 100% positive that changing the Boolean column to a
> > three-valued column is the right way forward, but it does have the
> > advantage of saving a byte, and the width of system catalog tables has
> > been a periodic concern.
>
> In this case, as I already said, the new boolean column would go in
> what's currently padding space, so there's no widening taking place.
IMHO, there will almost certainly be more single-byte columns at some
point in the future, so I feel like using up padding space is not much
different than actual widening over the long term.
> Please don't think that I'm in favor of doing it the difficult way for
> no reason. Previous versions of the patch (changing attnotnull to
> char), from the Postgres core code perspective, were pretty much ready
> -- we're having this discussion only to avoid the breakage. I could
> save us a bunch of time here and just push those patches, but I think
> the responsible thing here (the one we're less likely to regret) is not
> to.
Fair enough. I think I've said what I want to say, and I'm not here to
substitute my judgement for yours.
--
Robert Haas
EDB: http://www.enterprisedb.com
view thread (44+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints
In-Reply-To: <CA+TgmoYV3fKfKMg07aP7fm97i3xmG7OA7MUDOZeHPAJsZ2B8-g@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox