]> granicus.if.org Git - postgresql/commit
Don't allocate memory inside an Assert() iff in a critical section.
authorAndres Freund <andres@anarazel.de>
Sat, 24 May 2014 23:37:52 +0000 (01:37 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 25 May 2014 15:54:53 +0000 (17:54 +0200)
commit9fa93530c878a0e23147a65f7d9a62802b22a995
treeb20f8cac22b06858dbe8bd64b5c0562b95dc31b5
parent0564bbe7a1690f025f4424d5a12cb6af9d428c48
Don't allocate memory inside an Assert() iff in a critical section.

HeapTupleHeaderGetCmax() asserts that it is only used if the tuple has
been updated by the current transaction. That check is correct and
sensible but requires allocating memory if xmax is a multixact. When
wal_level is set to logical cmax needs to be included in a wal record
, generated inside a critical section, which can trigger the assertion
added in 4a170ee9e.

Reported-By: Steve Singer
src/backend/utils/time/combocid.c