Modify ShmemInitStruct and ShmemInitHash to throw errors internally,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 77acab75dfe2e4741c25c0cf550266caef1eebd2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-04-28T16:54:16Z
Releases: 9.0.0
Modify ShmemInitStruct and ShmemInitHash to throw errors internally,
rather than returning NULL for some-but-not-all failures as they used to.
Remove now-redundant tests for NULL from call sites.

We had to do something about this because many call sites were failing to
check for NULL; and changing it like this seems a lot more useful and
mistake-proof than adding checks to the call sites without them.

Files