diff options
| author | Peter Eisentraut | 2007-02-06 09:16:08 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2007-02-06 09:16:08 +0000 |
| commit | 037f8413fa42562a8b7a075a66faa8fd88247753 (patch) | |
| tree | 5f647e09d7c7e3e9ddd2687f5b31e9b0eb6dbc55 /src/include | |
| parent | 56e59edd7509f8726157cd8039529fc077f57ebb (diff) | |
Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. It
used to be part of libpq's exported interface many releases ago, but now
it's no longer necessary to make it accessible to clients.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/pg_config_manual.h | 11 | ||||
| -rw-r--r-- | src/include/postgres_ext.h | 12 |
2 files changed, 11 insertions, 12 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index d41d5619966..074833d1984 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -6,7 +6,7 @@ * for developers. If you edit any of these, be sure to do a *full* * rebuild (and an initdb if noted). * - * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.23 2006/09/18 22:40:40 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.24 2007/02/06 09:16:08 petere Exp $ *------------------------------------------------------------------------ */ @@ -63,6 +63,15 @@ #define XLOG_SEG_SIZE (16*1024*1024) /* + * Maximum length for identifiers (e.g. table names, column names, + * function names). It must be a multiple of sizeof(int) (typically + * 4). + * + * Changing this requires an initdb. + */ +#define NAMEDATALEN 64 + +/* * Maximum number of arguments to a function. * * The minimum value is 8 (index cost estimation uses 8-argument functions). diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h index efffad2c7ce..51a18b7dcc3 100644 --- a/src/include/postgres_ext.h +++ b/src/include/postgres_ext.h @@ -15,7 +15,7 @@ * use header files that are otherwise internal to Postgres to interface * with the backend. * - * $PostgreSQL: pgsql/src/include/postgres_ext.h,v 1.16 2004/08/29 05:06:55 momjian Exp $ + * $PostgreSQL: pgsql/src/include/postgres_ext.h,v 1.17 2007/02/06 09:16:08 petere Exp $ * *------------------------------------------------------------------------- */ @@ -39,16 +39,6 @@ typedef unsigned int Oid; /* - * NAMEDATALEN is the max length for system identifiers (e.g. table names, - * attribute names, function names, etc). It must be a multiple of - * sizeof(int) (typically 4). - * - * NOTE that databases with different NAMEDATALEN's cannot interoperate! - */ -#define NAMEDATALEN 64 - - -/* * Identifiers of error message fields. Kept here to keep common * between frontend and backend, and also to export them to libpq * applications. |
