Make AllocSetContextCreate throw an error for bad context-size parameters.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2016 13:29:26 +0000 (09:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2016 13:29:26 +0000 (09:29 -0400)
commitcf34fdbbe1452b9e19c0956bc48494889e1b2777
treeea12ea36c0ac7e9f673387c8b1585e1d91848014
parent49340627f9821e447f135455d942f7d5e96cae6d
Make AllocSetContextCreate throw an error for bad context-size parameters.

The previous behavior was to silently change them to something valid.
That obscured the bugs fixed in commit ea268cdc9, and generally seems
less useful than complaining.  Unlike the previous commit, though,
we'll do this in HEAD only --- it's a bit too late to be possibly
breaking third-party code in 9.6.

Discussion: <CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com>
src/backend/utils/mmgr/aset.c