Introduce variables for initial and max nesting depth on configuration files

Enterprise / PostgreSQL - Michael Paquier [paquier.xyz] - 24 November 2022 22:40 UTC

The code has been assuming already in a few places that the initial recursion nesting depth is 0, and the recent changes in hba.c (mainly 783e8c6) have relies on this assumption in more places. The maximum recursion nesting level is assumed to be 10 for hba.c and GUCs.

Author: Julien Rouhaud Discussion: https://postgr.es/m/20221124090724.n7amf5kpdhx6vb76@jrouhaud

d13b684117 Introduce variables for initial and max nesting depth on configuration files
src/backend/commands/extension.c | 4 +++-
src/backend/libpq/hba.c | 10 +++++-----
src/backend/utils/misc/guc-file.l | 5 +++--
src/backend/utils/misc/guc.c | 8 +++++---
src/include/utils/conffiles.h | 4 ++++
5 files changed, 20 insertions(+), 11 deletions(-)

Upstream: git.postgresql.org


  • Share