Out-of-bounds memory allocation request sizes should be treated as just
Tom Lane <tgl@sss.pgh.pa.us>
Out-of-bounds memory allocation request sizes should be treated as just elog(ERROR) not an Assert trap, since we've downgraded out-of-memory to elog(ERROR) not a fatal error. Also, change the hard boundary from 256Mb to 1Gb, just so that anyone who's actually got that much memory to spare can play with TOAST objects approaching a gigabyte.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/error/excid.c | modified | +1 −13 |
| src/backend/utils/mmgr/mcxt.c | modified | +7 −5 |
| src/include/utils/excid.h | modified | +1 −3 |
| src/include/utils/memutils.h | modified | +5 −4 |