Re: BUG #16325: Assert failure on partitioning by int for a textvalue with a collation - Mailing list pgsql-bugs

From Dmitry Dolgov
Subject Re: BUG #16325: Assert failure on partitioning by int for a textvalue with a collation
Date
Msg-id 20200328125303.4me6vetvzgebobw5@localhost
Whole thread Raw
In response to BUG #16325: Assert failure on partitioning by int for a text value with a collation  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16325: Assert failure on partitioning by int for a textvalue with a collation  (Michael Paquier <michael@paquier.xyz>)
List pgsql-bugs
> On Sat, Mar 28, 2020 at 05:43:05AM +0000, PG Bug reporting form wrote:
>
>
> The following query:
> create table parted (i int) partition by list (i);
> create table part_coll partition of parted for values in ('1' collate
> "POSIX");
>
> leads to an assert failure with the following stack trace:

Thanks for reporting! Looks like transformPartitionBoundValue needs to
check that the source collumn is collatable, then we get more expected
result:

    =# create table part_coll partition of parted for values in ('1' collate "POSIX");
    ERROR:  42804: collations are not supported by type integer

Attachment

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16325: Assert failure on partitioning by int for a text value with a collation
Next
From: "56224665"
Date:
Subject: apparent wraparound on postgresql 12