Filter:

Commits on April 14, 2010

Commits2 commits of which 2 backported
0Author
2Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterBackportedFix plpgsql's exec_eval_expr() to ensure it returns a sane type OID even when the expression is a query that returns no rows.
f7c5ff3d
master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+11 more
No linked threadApr 14, 2010
CommitterBackportedFix a problem introduced by my patch of 2010-01-12 that revised the way relcache reload works. In the patched code, a relcache entry in process of being rebuilt doesn't get unhooked from the relcache hash table; which means that if a cache flush occurs due to sinval queue overrun while we're rebuilding it, the entry could get blown away by RelationCacheInvalidate, resulting in crash or misbehavior. Fix by ensuring that an entry being rebuilt has positive refcount, so it won't be seen as a target for removal if a cache flush occurs. (This will mean that the entry gets rebuilt twice in such a scenario, but that's okay.) It appears that the problem can only arise within a transaction that has previously reassigned the relfilenode of a pre-existing table, via TRUNCATE or a similar operation. Per bug #5412 from Rusty Conover.
73981cb4
master9.0beta1REL_19_STABLE9.0beta1REL_18_STABLE9.0beta1REL_17_STABLE9.0beta1REL_16_STABLE9.0beta1REL_15_STABLE9.0beta1REL_14_STABLE9.0beta1REL_13_STABLE9.0beta1+13 more
No linked threadApr 14, 2010