Dean Rasheed writes:
> On 10 March 2018 at 20:21, Tom Lane wrote:
>> If we suppose that we only need to fix it in HEAD, the most attractive
>> answer is to add a parameter distinguishing WHERE and CHECK arguments
>> to canonicalize_qual.
> I agree
On 10 March 2018 at 20:21, Tom Lane wrote:
> I wrote:
>> Whilst fooling about with predtest.c, I noticed a rather embarrassing
>> error. Consider the following, rather silly, CHECK constraint:
>> ...
>> So, what to do? We have a few choices, none ideal:
>
> I'd been assuming
I wrote:
> Whilst fooling about with predtest.c, I noticed a rather embarrassing
> error. Consider the following, rather silly, CHECK constraint:
> ...
> So, what to do? We have a few choices, none ideal:
I'd been assuming that we need to back-patch a fix for this, but after
further reflection,
Whilst fooling about with predtest.c, I noticed a rather embarrassing
error. Consider the following, rather silly, CHECK constraint:
regression=# create table pp (f1 int);
CREATE TABLE
regression=# create table cc (check (f1 = 1 or f1 = null)) inherits(pp);
CREATE TABLE
Because "f1 = null"