Re: NOT NULL markings for BKI columns
От | Andres Freund |
---|---|
Тема | Re: NOT NULL markings for BKI columns |
Дата | |
Msg-id | 20150215172652.GF15326@awork2.anarazel.de обсуждение исходный текст |
Ответ на | Re: NOT NULL markings for BKI columns (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: NOT NULL markings for BKI columns
|
Список | pgsql-hackers |
On 2015-02-15 12:11:52 -0500, Tom Lane wrote: > Andres Freund <andres@2ndquadrant.com> writes: > > So, how about providing bootstrap infrastructure for marking columns as > > NOT NULL? > > We've not desperately needed it up to now, but if you can think of a clean > representation, go for it. I'd want to preserve the property that all > columns accessible via C structs are automatically NOT NULL though; too > much risk of breakage otherwise. Agreed. I think that the noise of changing all existing attributes to have the marker would far outweigh the cleanliness of being consistent. I was thinking of adding BKI_FORCENOTNULL which would be specified on the attributes you want it. The FORCE in there representing that the default choice is overwritten. On a first glance that doesn't look too hard. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: