diff options
Diffstat (limited to 'src/include/config.h.in')
-rw-r--r-- | src/include/config.h.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in index e36220e940..698526e7da 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -204,6 +204,18 @@ /* #define OLD_REWRITE */ /* + * MAXPGPATH: standard size of a pathname buffer in Postgres (hence, + * maximum usable pathname length is one less). + * + * We'd use a standard system header symbol for this, if there weren't + * so many to choose from: MAXPATHLEN, _POSIX_PATH_MAX, MAX_PATH, PATH_MAX + * are all defined by different "standards", and often have different + * values on the same platform! So we just punt and use a reasonably + * generous setting here. + */ +#define MAXPGPATH 1024 + +/* *------------------------------------------------------------------------ * The following is set using configure. *------------------------------------------------------------------------ |