diff options
| author | Bruce Momjian | 2006-05-30 14:09:32 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-05-30 14:09:32 +0000 |
| commit | 01b2168c90f121b5be7da72786c051588c43c128 (patch) | |
| tree | f6509f08f087f762892f1d47bde60456c34f53df /src/test | |
| parent | 87bd07d97989bafe63a029931a65512aca4ba531 (diff) | |
Add pgmagic header block to store compile-time constants:
It now only checks four things:
Major version number (7.4 or 8.1 for example)
NAMEDATALEN
FUNC_MAX_ARGS
INDEX_MAX_KEYS
The three constants were chosen because:
1. We document them in the config page in the docs
2. We mark them as changable in pg_config_manual.h
3. Changing any of these will break some of the more popular modules:
FUNC_MAX_ARGS changes fmgr interface, every module uses this NAMEDATALEN
changes syscache interface, every PL as well as tsearch uses this
INDEX_MAX_KEYS breaks tsearch and anything using GiST.
Martijn van Oosterhout
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/regress.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/regress/regress.c b/src/test/regress/regress.c index 7c58f950cb..0f37f19204 100644 --- a/src/test/regress/regress.c +++ b/src/test/regress/regress.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.65 2006/01/11 20:12:43 tgl Exp $ + * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.66 2006/05/30 14:09:32 momjian Exp $ */ #include "postgres.h" @@ -9,6 +9,7 @@ #include "utils/geo_decls.h" /* includes <math.h> */ #include "executor/executor.h" /* For GetAttributeByName */ #include "commands/sequence.h" /* for nextval() */ +#include "pgmagic.h" #define P_MAXDIG 12 #define LDELIM '(' @@ -27,7 +28,7 @@ extern int oldstyle_length(int n, text *t); extern Datum int44in(PG_FUNCTION_ARGS); extern Datum int44out(PG_FUNCTION_ARGS); - +PG_MODULE_MAGIC; /* * Distance from a point to a path */ |
