Re: [HACKERS] About get_relation_constraints and include_notnull

2016-01-14 Thread Amit Langote
On 2016/01/14 23:36, Tom Lane wrote: > Amit Langote writes: >> Why does the argument include_notnull argument exist if >> get_relation_constraints() is being called from only one place? Perhaps we >> could remove it and add the IS NOT NULL test expression unconditionally if >> there are any NOT NU

Re: [HACKERS] About get_relation_constraints and include_notnull

2016-01-14 Thread Tom Lane
Amit Langote writes: > Why does the argument include_notnull argument exist if > get_relation_constraints() is being called from only one place? Perhaps we > could remove it and add the IS NOT NULL test expression unconditionally if > there are any NOT NULL columns. Well, you could argue why have

[HACKERS] About get_relation_constraints and include_notnull

2016-01-13 Thread Amit Langote
Why does the argument include_notnull argument exist if get_relation_constraints() is being called from only one place? Perhaps we could remove it and add the IS NOT NULL test expression unconditionally if there are any NOT NULL columns. Thanks, Amit -- Sent via pgsql-hackers mailing list (pg