mirror of
https://github.com/postgres/postgres.git
synced 2025-12-02 23:42:46 +03:00
Tweak palloc/repalloc to allow zero bytes to be requested, as per recent
proposal. Eliminate several dozen now-unnecessary hacks to avoid palloc(0). (It's likely there are more that I didn't find.)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mmgr/mcxt.c,v 1.44 2003/11/29 19:52:04 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mmgr/mcxt.c,v 1.45 2004/06/05 19:48:09 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -565,7 +565,7 @@ pfree(void *pointer)
|
||||
|
||||
/*
|
||||
* repalloc
|
||||
*
|
||||
* Adjust the size of a previously allocated chunk.
|
||||
*/
|
||||
void *
|
||||
repalloc(void *pointer, Size size)
|
||||
|
||||
Reference in New Issue
Block a user