Aleksander Alekseev <a.aleks...@postgrespro.ru> writes: > I suggest to keep ShmemAlloc as is for backward compatibility and > introduce a new procedure ShmemAllocSafe.
I think that's about the worst of all possible worlds, as it guarantees having to touch most call sites. If there were more than one known caller that really wanted the return-NULL behavior, exact backwards compatibility might carry the day; but as things stand I think the odds are that most call sites need an error check and probably have not got one. I'd rather err in favor of "safe by default" than "backwards compatible". regards, tom lane -- Sent via pgsql-hackers mailing list (email@example.com) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers