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

From Alvaro Herrera
Subject Re: PSQL error: total cell count of XXX exceeded
Date
Msg-id 202311211433.d5o7n6a25xtx@alvherre.pgsql
Whole thread Raw
In response to Re: PSQL error: total cell count of XXX exceeded  (Hongxu Ma <interma@outlook.com>)
Responses Re: PSQL error: total cell count of XXX exceeded
List pgsql-hackers
On 2023-Sep-13, Hongxu Ma wrote:

> After double check, looks `int64` of src/include/c.h is the proper type for it.
> Uploaded the v4 patch to fix it.

Right.  I made a few more adjustments, including the additional overflow
check in printTableInit that Tom Lane suggested, and pushed this.

It's a bit annoying that the error recovery decision of this code is to
exit the process with an error.  If somebody were to be interested in a
fun improvement exercise, it may be worth redoing the print.c API so
that it returns errors that psql can report and recover from, instead of
just closing the process.

TBH though, I've never hit that code in real usage.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: CREATE FUNCTION ... SEARCH { DEFAULT | SYSTEM | SESSION }
Next
From: Fabrízio de Royes Mello
Date:
Subject: pg_class.relpages not updated for toast index