Re: Improving on MAX_CONVERSION_GROWTH
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-09-27T15:53:56Z
Lists: pgsql-hackers
On Fri, Sep 27, 2019 at 11:40 AM Andres Freund <andres@anarazel.de> wrote: > Note that one of the additional reasons for the 1GB limit is that it > protects against int overflows. I'm somewhat unconvinced that that's a > sensible approach, but ... It's not crazy. People using 'int' rather casually just as they use 'palloc' rather casually, without necessarily thinking about what could go wrong at the edges. I don't have any beef with that as a general strategy; I just think we should be trying to do better in the cases where it negatively affects the user experience. > It's worthwhile to note that additional passes over data are often quite > expensive, memory latency hasn't shrunk that much in last decade or > so. I have frequently seen all the memcpys from one StringInfo/char* > into another StringInfo show up in profiles. OK. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Avoid unnecessary out-of-memory errors during encoding conversion.
- 6899be28908a 9.4.25 landed
- 677989cc0107 9.6.16 landed
- 54d641da0640 9.5.20 landed
- 226551e7c385 10.11 landed
- e5ff9757194b 11.6 landed
- 8e10405c7450 13.0 landed
- 8381242df587 12.1 landed
-
Allow repalloc() to give back space when a large chunk is downsized.
- 4829576ba44b 9.4.25 landed
- e5e4f12a5f85 9.6.16 landed
- c477f3e449d1 13.0 landed
- 9ad1b572d8b7 10.11 landed
- 9a407209a075 12.1 landed
- 82d0a46ea32d 11.6 landed
- 1534531fe74f 9.5.20 landed