Re: PSQL error: total cell count of XXX exceeded

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PSQL error: total cell count of XXX exceeded
Дата
Msg-id 2728718.1694492393@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PSQL error: total cell count of XXX exceeded  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: PSQL error: total cell count of XXX exceeded  (Hongxu Ma <interma@outlook.com>)
Re: PSQL error: total cell count of XXX exceeded  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Tue, Sep 12, 2023 at 02:39:55AM +0000, Hongxu Ma wrote:
> +       long total_cells;

> long is 4 bytes on Windows, and 8 bytes basically elsewhere.  So you
> would still have the same problem on Windows, no?

More to the point: what about the multiplication in printTableInit?
The cat's been out of the bag for quite some time before we get to
printTableAddCell.

I'm more than a bit skeptical about trying to do something about this,
simply because this range of query result sizes is far past what is
practical.  The OP clearly hasn't tested his patch on actually
overflowing query results, and I don't care to either.

            regards, tom lane



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Следующее
От: jacktby jacktby
Дата:
Сообщение: Re: How to add built-in func?