Re: PostgreSQL domains and NOT NULL constraint
От
Tom Lane
Тема
Re: PostgreSQL domains and NOT NULL constraint
Дата
Msg-id
461950.1698109348@sss.pgh.pa.us
Ответ на
Re: PostgreSQL domains and NOT NULL constraint (Matthias van de Meent)
Список
Дерево обсуждения
PostgreSQL domains and NOT NULL constraint Erki Eessaar <erki.eessaar@taltech.ee>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Pavel Stehule <pavel.stehule@gmail.com>
Re: PostgreSQL domains and NOT NULL constraint Isaac Morland <isaac.morland@gmail.com>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL domains and NOT NULL constraint Vik Fearing <vik@postgresfriends.org>
Re: PostgreSQL domains and NOT NULL constraint Erki Eessaar <erki.eessaar@taltech.ee>
Re: PostgreSQL domains and NOT NULL constraint Erki Eessaar <erki.eessaar@taltech.ee>
Re: PostgreSQL domains and NOT NULL constraint Erki Eessaar <erki.eessaar@taltech.ee>
Matthias van de Meent writes: > On Mon, 23 Oct 2023, 19:34 Tom Lane, wrote: >> After ruminating on this for awhile, here's a straw-man proposal: >> ... > How does this work w.r.t. concurrently created tables that contain the > domain? It wouldn't change that at all I think. I had noticed that we'd probably need to tweak validateDomainConstraint() to ensure it applies the same semantics that INSERT/UPDATE do --- although with Isaac's idea to enable better tracking of which constraints will fail on NULL, maybe just a blind application of the constraint expression will still be close enough. I agree that concurrent transactions can create violations of the new constraint, but (a) that's true now, (b) I have no good ideas about how to improve it, and (c) it seems like an independent problem. regards, tom lane
В списке pgsql-hackers по дате отправления