Move out-of-memory error checks from aset.c to mcxt.c

Robert Haas <rhaas@postgresql.org>

Commit: 3d6d1b585524aab62616d20518fe1fe3be5d1a39
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-01-29T15:23:38Z
Releases: 9.5.0
Move out-of-memory error checks from aset.c to mcxt.c

This potentially allows us to add mcxt.c interfaces that do something
other than throw an error when memory cannot be allocated.  We'll
handle adding those interfaces in a separate commit.

Michael Paquier, with minor changes by me

Files

PathChange+/−
src/backend/utils/mmgr/aset.c modified +13 −26
src/backend/utils/mmgr/mcxt.c modified +66 −0