]> 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:14:44 +0000 (18:14 -0400)
commitf112d4088c29997bd777a8934b11a797132391db
tree4bb7e0e4c68362c8d11e5af8e9284a14efaedba7
parent95e9f928ce5e831ceef725b988d937dacae15026
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