diff options
| author | Michael Paquier | 2022-11-24 22:40:12 +0000 |
|---|---|---|
| committer | Michael Paquier | 2022-11-24 22:40:12 +0000 |
| commit | d13b684117bdf136f97db5bcba2be524ed038b6d (patch) | |
| tree | 14d0c7d76f0852137a0fb40e23d1456214f59f45 /src/include/utils | |
| parent | 2d1f3bce97a9f4ac3ec4acbf337ffef598522216 (diff) | |
Introduce variables for initial and max nesting depth on configuration files
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
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/conffiles.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/utils/conffiles.h b/src/include/utils/conffiles.h index 3f23a2a011b..f4d73f96b2f 100644 --- a/src/include/utils/conffiles.h +++ b/src/include/utils/conffiles.h @@ -13,6 +13,10 @@ #ifndef CONFFILES_H #define CONFFILES_H +/* recursion nesting depth for configuration files */ +#define CONF_FILE_START_DEPTH 0 +#define CONF_FILE_MAX_DEPTH 10 + extern char *AbsoluteConfigLocation(const char *location, const char *calling_file); extern char **GetConfFilesInDir(const char *includedir, |
