Re: BUG #16302: too many range table entries - when count partition table(65538 childs)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: digoal(at)126(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
Date: 2020-03-14 15:03:05
Message-ID: 32763.1584198185@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> when i count a partition table with many childs , it's error below:

> postgres=> select count(*) from p;
> ERROR: 54000: too many range table entries
> LOCATION: add_rte_to_flat_rtable, setrefs.c:425

This hardly seems like a bug. We do not support an infinite number of
partitions --- and in the real world, performance would have tanked
long before you got to this many partitions.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel WM 2020-03-14 20:43:32 Re: BUG #16293: postgres segfaults and returns SQLSTATE 08006
Previous Message PG Bug reporting form 2020-03-14 14:02:19 BUG #16302: too many range table entries - when count partition table(65538 childs)