From 0db1a951d5bb7617bbf2bd0b30a9f0971c2ce11d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 22 Dec 2000 21:36:09 +0000 Subject: 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. --- src/include/postgres_ext.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/include/postgres_ext.h') 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 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! -- cgit v1.2.3