]> granicus.if.org Git - postgresql/commit
Tweak palloc/repalloc to allow zero bytes to be requested, as per recent
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Jun 2004 19:48:09 +0000 (19:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Jun 2004 19:48:09 +0000 (19:48 +0000)
commitc3a153afed84e29dac664bdc6123724a9e3a906f
tree8249c3dd76ddc9874656ec36f763227327c0a70e
parent24a1e20f146f3b4b88f0f5189a7631c511796310
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.)
19 files changed:
src/backend/access/nbtree/nbtree.c
src/backend/commands/analyze.c
src/backend/commands/copy.c
src/backend/commands/tablecmds.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/backend/executor/execQual.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/clauses.c
src/backend/storage/freespace/freespace.c
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/lock.c
src/backend/tcop/pquery.c
src/backend/utils/adt/name.c
src/backend/utils/mmgr/README
src/backend/utils/mmgr/mcxt.c
src/include/utils/memutils.h
src/pl/plpgsql/src/pl_exec.c
src/pl/plpython/plpython.c