diff options
author | Tom Lane | 2000-12-22 21:36:09 +0000 |
---|---|---|
committer | Tom Lane | 2000-12-22 21:36:09 +0000 |
commit | 0db1a951d5bb7617bbf2bd0b30a9f0971c2ce11d (patch) | |
tree | 0a93b01eb10a5b8ea09cf6b1f7633b47844c8e34 /src/include/postgres_ext.h | |
parent | 369aace5f3dc46409f6777c0fed9ef113db43d4a (diff) |
Repair not-too-well-thought-out code to do rangechecking of OIDs on
64-bit machines. Also, make oidvectorin use the same code as oidin.
Diffstat (limited to 'src/include/postgres_ext.h')
-rw-r--r-- | src/include/postgres_ext.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h index 7e73539912a..18be70ea922 100644 --- a/src/include/postgres_ext.h +++ b/src/include/postgres_ext.h @@ -16,7 +16,7 @@ * use header files that are otherwise internal to Postgres to interface * with the backend. * - * $Id: postgres_ext.h,v 1.4 1999/06/04 21:12:07 tgl Exp $ + * $Id: postgres_ext.h,v 1.5 2000/12/22 21:36:09 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -24,9 +24,17 @@ #ifndef POSTGRES_EXT_H #define POSTGRES_EXT_H +/* + * Object ID is a fundamental type in Postgres. + */ typedef unsigned int Oid; -/* NAMEDATALEN is the max length for system identifiers (e.g. table names, +#define OID_MAX UINT_MAX +/* you will need to include <limits.h> to use the above #define */ + + +/* + * NAMEDATALEN is the max length for system identifiers (e.g. table names, * attribute names, function names, etc.) * * NOTE that databases with different NAMEDATALEN's cannot interoperate! |