Re: PG 14 range partitions creation works but subsequently can't be found correctly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ian R(dot) Campbell" <ian(dot)campbell(at)thepathcentral(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: PG 14 range partitions creation works but subsequently can't be found correctly
Date: 2021-11-24 17:58:22
Message-ID: 175810.1637776702@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ian R. Campbell" <ian(dot)campbell(at)thepathcentral(dot)com> writes:
> The following executes without problem:

> CREATE TABLE part (
> h "char" not null,
> val int4 not null
> ) PARTITION BY RANGE (h);

> create table part_00 partition of part FOR VALUES FROM ((-128)::"char") to
> ((-113)::"char");
> create table part_01 partition of part FOR VALUES FROM ((-112)::"char") to
> ((-97)::"char");
> ...

This works for me in psql, modulo the fact that your boundary conditions
are off-by-one. (That is, I can store h = -114 and -112, but not -113,
in this table.)

> In pgAdmin 4, navigating to "Partitions" (after refreshing) results only in
> a spinning wheel.

That sounds like a pgAdmin bug --- but this list is not the place
to report pgAdmin problems.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Elvis Pranskevichus 2021-11-24 19:48:37 Re: BUG #17213: Wrong result from a query involving Merge Semi Join and Memoize
Previous Message Ian R. Campbell 2021-11-24 15:23:03 PG 14 range partitions creation works but subsequently can't be found correctly