]> granicus.if.org Git - postgresql/commit
Limit depth of forced recursion for CLOBBER_CACHE_RECURSIVELY.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 7 Sep 2018 22:13:29 +0000 (18:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 7 Sep 2018 22:13:58 +0000 (18:13 -0400)
commit90fd3bfd17070d3c2467a45204ede17b70a15387
treef6e22068700d033b2da444c981ea7da2806da49c
parent2569ca0dc8a28f0aa475c32ff122c439700f020a
Limit depth of forced recursion for CLOBBER_CACHE_RECURSIVELY.

It's somewhat surprising that we got away with this before.  (Actually,
since nobody tests this routinely AFAIK, it might've been broken for
awhile.  But it's definitely broken in the wake of commit f868a8143.)
It seems sufficient to limit the forced recursion to a small number
of levels.

Back-patch to all supported branches, like the preceding patch.

Discussion: https://postgr.es/m/12259.1532117714@sss.pgh.pa.us
src/backend/utils/cache/inval.c