Re: PSQL error: total cell count of XXX exceeded - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PSQL error: total cell count of XXX exceeded
Date
Msg-id 2728718.1694492393@sss.pgh.pa.us
Whole thread Raw
In response to Re: PSQL error: total cell count of XXX exceeded  (Michael Paquier <michael@paquier.xyz>)
Responses Re: PSQL error: total cell count of XXX exceeded
Re: PSQL error: total cell count of XXX exceeded
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Next
From: jacktby jacktby
Date:
Subject: Re: How to add built-in func?