Re: [HACKERS] remove unnecessary flag has_null from PartitionBoundInfoData - Mailing list pgsql-hackers

From amul sul
Subject Re: [HACKERS] remove unnecessary flag has_null from PartitionBoundInfoData
Date
Msg-id CAAJ_b94AkEzcx+12ySCnbMDX7=UdF4BjnoBGfMQbB0RNSTo3Ng@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] remove unnecessary flag has_null from PartitionBoundInfoData  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] remove unnecessary flag has_null from PartitionBoundInfoData  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
On Wed, May 17, 2017 at 10:22 PM, Robert Haas <robertmhaas@gmail.com> wrote:
[...]
> I committed this with fixes for those issues, plus I renamed the macro
> to partition_bound_accepts_nulls, which I think is more clear.
>
partition_bound_accepts_nulls() will alway yield true for a range
partitioning case, because in RelationBuildPartitionDesc, we forgot to
set boundinfo->null_index to -1.

The attached patch fixes that.


Regards,
Amul

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Broken hint bits (freeze)
Next
From: Alexey Kondratov
Date:
Subject: Re: [HACKERS] GSOC'17 project introduction: Parallel COPY executionwith errors handling