pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: digoal@126.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
Date: Sat, 14 Mar 2020 11:03:05 -0400
Message-ID: <32763.1584198185@sss.pgh.pa.us> (raw)
In-Reply-To: <16302-e45634e2c0e34e97@postgresql.org>
References: <16302-e45634e2c0e34e97@postgresql.org>

PG Bug reporting form <noreply@postgresql.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





view thread (12+ messages)  latest in thread

Message-ID: <32763.1584198185@sss.pgh.pa.us>
Permalink:  ../32763.1584198185@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32763.1584198185@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, digoal@126.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
  In-Reply-To: <32763.1584198185@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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