1 /*-------------------------------------------------------------------------
5 * This file contains declarations of things that are visible everywhere
6 * in PostgreSQL *and* are visible to clients of frontend interface libraries.
7 * For example, the Oid type is part of the API of libpq and other libraries.
9 * Declarations which are specific to a particular interface should
10 * go in the header file for that interface (such as libpq-fe.h). This
11 * file is only for fundamental Postgres declarations.
13 * User-written C functions don't count as "external to Postgres."
14 * Those function much as local modifications to the backend itself, and
15 * use header files that are otherwise internal to Postgres to interface
18 * $Id: postgres_ext.h,v 1.9 2001/10/28 06:25:59 momjian Exp $
20 *-------------------------------------------------------------------------
23 #ifndef POSTGRES_EXT_H
24 #define POSTGRES_EXT_H
27 * Object ID is a fundamental type in Postgres.
29 typedef unsigned int Oid;
31 #define InvalidOid ((Oid) 0)
33 #define OID_MAX UINT_MAX
34 /* you will need to include <limits.h> to use the above #define */
38 * NAMEDATALEN is the max length for system identifiers (e.g. table names,
39 * attribute names, function names, etc.)
41 * NOTE that databases with different NAMEDATALEN's cannot interoperate!
43 #define NAMEDATALEN 32