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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
Дата
Msg-id 31331.1584452939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #16302: too many range table entries - when count partitiontable(65538 childs)  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: BUG #16302: too many range table entries - when count partitiontable(65538 childs)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Mar 15, 2020 at 10:38 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Well, if we say "PG can handle up to 64K relations in a query",
>> I think people would read that as meaning that you actually get
>> usable performance with up to 64K relations.  Which is a long
>> way away, even if certain specific cases might work acceptably.
>> The existing docs discourage using more than a few thousand
>> partitions, IIRC, and that seems like sufficient guidance for now.

> Would would be the downside to raising INNER_VAR to, say, a billion?

We'd have to widen AttrNumber to int32 and find all the places that
assume it's only 16 bits.  (Good luck with testing your way to having
any confidence in having found them all, so I'm not sure exactly how
to acquire such confidence.)  Maybe someday that will be a profitable
use of developer effort, but I have to say that I think that day is
a long way off.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #16302: too many range table entries - when count partitiontable(65538 childs)
Следующее
От: Robert Haas
Дата:
Сообщение: Re: BUG #16302: too many range table entries - when count partitiontable(65538 childs)