Re: NOT NULL markings for BKI columns - Mailing list pgsql-hackers

From Andres Freund
Subject Re: NOT NULL markings for BKI columns
Date
Msg-id 20150215172652.GF15326@awork2.anarazel.de
Whole thread Raw
In response to Re: NOT NULL markings for BKI columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: NOT NULL markings for BKI columns
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: NOT NULL markings for BKI columns
Next
From: Tom Lane
Date:
Subject: Re: NOT NULL markings for BKI columns