Files
openGauss-server/src/include/postgres_fe.h
dengxuyue 1567043064 同步source code
日期: 12-26
    revision: ee5b054c
2020-12-28 22:19:21 +08:00

61 lines
1.3 KiB
C

/* -------------------------------------------------------------------------
*
* postgres_fe.h
* Primary include file for PostgreSQL client-side .c files
*
* This should be the first file included by PostgreSQL client libraries and
* application programs --- but not by backend modules, which should include
* postgres.h.
*
*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
* src/include/postgres_fe.h
*
* -------------------------------------------------------------------------
*/
#ifndef POSTGRES_FE_H
#define POSTGRES_FE_H
#ifndef FRONTEND
#define FRONTEND 1
#endif
#include "c.h"
#include "securec.h"
#include "securec_check.h"
#include <assert.h>
#ifndef Assert
#ifndef USE_ASSERT_CHECKING
#define Assert(p)
#else
#define Assert(p) assert(p)
#endif /* USE_ASSERT_CHECKING */
#endif /* Assert */
#ifndef AssertMacro
#define AssertMacro Assert
#endif
#ifndef BoolGetDatum
#define BoolGetDatum(X) /*lint -e506*/ ((Datum)((X) ? 1 : 0)) /*lint +e506*/
#endif
#ifndef PointerGetDatum
#define PointerGetDatum(X) ((Datum)(X))
#endif
#ifndef HAVE_DATABASE_TYPE
#define HAVE_DATABASE_TYPE
/* Type of database; increase for sql compatibility */
typedef enum {
ORA_FORMAT,
TD_FORMAT
} DatabaseType;
#endif // HAVE_DATABASE_TYPE
#endif /* POSTGRES_FE_H */