pgsql: Add pgmagic header block to store compile-time constants: It now

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add pgmagic header block to store compile-time constants: It now
Date: 2006-05-30 14:09:33
Message-ID: 20060530140933.1233E9FA5E6@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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

Modified Files:
--------------
pgsql/doc/src/sgml:
xfunc.sgml (r1.112 -> r1.113)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/xfunc.sgml.diff?r1=1.112&r2=1.113)
pgsql/src/backend/utils/fmgr:
dfmgr.c (r1.82 -> r1.83)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/fmgr/dfmgr.c.diff?r1=1.82&r2=1.83)
pgsql/src/test/regress:
regress.c (r1.65 -> r1.66)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/regress.c.diff?r1=1.65&r2=1.66)

Added Files:
-----------
pgsql/src/include:
pgmagic.h (r1.1)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/pgmagic.h?rev=1.1&content-type=text/x-cvsweb-markup)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-05-30 15:48:20 pgsql: Update ppport.h to not cause warnings with newest Perl versions.
Previous Message User Sndev 2006-05-30 14:06:09 protopg - protopg: todo --