Limit depth of forced recursion for CLOBBER_CACHE_RECURSIVELY.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2ef5c12ad5b613fd4f4755122aa837689f7c5fd5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-09-07T22:14:24Z
Releases: 9.6.11
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

Files

PathChange+/−
src/backend/utils/cache/inval.c modified +11 −1

Discussion