pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Range partition creation failing due to incorrectly deciding lower bound greater than upper
2+ messages / 1 participants
[nested] [flat]

* Range partition creation failing due to incorrectly deciding lower bound greater than upper
@ 2018-08-03 22:54 Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  2018-08-03 22:58 ` Re: Range partition creation failing due to incorrectly deciding lower bound greater than upper Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 1 reply; 2+ messages in thread

From: Mark Kirkwood @ 2018-08-03 22:54 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org

I'm seeing a partition failing to create (10.4 built from src on Ubuntu 
18.04, default db parameters):

part=# CREATE TABLE date_fact(
    id  INTEGER NOT NULL,
    dte TIMESTAMPTZ NOT NULL,
    val INTEGER NOT NULL)
PARTITION BY RANGE (dte);
CREATE TABLE


part=# CREATE TABLE date_fact_2020 PARTITION OF date_fact
FOR VALUES FROM ('2018-09-30 01:54:00.625000') TO ('2018-09-30 
02:34:42.031250');
CREATE TABLE


part=# CREATE TABLE date_fact_2021 PARTITION OF date_fact
FOR VALUES FROM ('2018-09-30 02:34:42.031250') TO ('2018-09-30 
03:15:23.437500');
ERROR:  empty range bound specified for partition "date_fact_2021"
DETAIL:  Specified lower bound ('2018-09-30 03:34:42.03125+13') is 
greater than or equal to upper bound ('2018-09-30 03:15:23.4375+13').

Err, that is weird - where did '2018-09-30 03:34:42.03125+13')come from?

I initially ran into this creating 4096 partitions (yeah, I know that is 
probably too many), but it reproduces in the above case with only 2.

regards

Mark






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Range partition creation failing due to incorrectly deciding lower bound greater than upper
  2018-08-03 22:54 Range partition creation failing due to incorrectly deciding lower bound greater than upper Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
@ 2018-08-03 22:58 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 0 replies; 2+ messages in thread

From: Mark Kirkwood @ 2018-08-03 22:58 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org

On 04/08/18 10:54, Mark Kirkwood wrote:

>
>
> part=# CREATE TABLE date_fact_2021 PARTITION OF date_fact
> FOR VALUES FROM ('2018-09-30 02:34:42.031250') TO ('2018-09-30 
> 03:15:23.437500');
> ERROR:  empty range bound specified for partition "date_fact_2021"
> DETAIL:  Specified lower bound ('2018-09-30 03:34:42.03125+13') is 
> greater than or equal to upper bound ('2018-09-30 03:15:23.4375+13').
>
> Err, that is weird - where did '2018-09-30 03:34:42.03125+13')come from?
>
>

Doh! New Zealand daylight saving kicks in just then - should have 
checked that 1st, sorry.

regards
Mark





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-08-03 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-03 22:54 Range partition creation failing due to incorrectly deciding lower bound greater than upper Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2018-08-03 22:58 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox