Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones | Variables
Referencia del Archivo src/libpq/include/postgres.h
#include "c.h"
#include "utils/elog.h"
#include "utils/palloc.h"

Ir al código fuente de este archivo.

Clases

struct  varattrib

'defines'

#define VARATT_FLAG_EXTERNAL   0x80000000
#define VARATT_FLAG_COMPRESSED   0x40000000
#define VARATT_MASK_FLAGS   0xc0000000
#define VARATT_MASK_SIZE   0x3fffffff
#define VARATT_SIZEP(_PTR)   (((varattrib *)(_PTR))->va_header)
#define VARATT_SIZE(PTR)   (VARATT_SIZEP(PTR) & VARATT_MASK_SIZE)
#define VARATT_DATA(PTR)   (((varattrib *)(PTR))->va_content.va_data)
#define VARATT_CDATA(PTR)   (((varattrib *)(PTR))->va_content.va_compressed.va_data)
#define VARSIZE(__PTR)   VARATT_SIZE(__PTR)
#define VARDATA(__PTR)   VARATT_DATA(__PTR)
#define VARATT_IS_EXTENDED(PTR)   ((VARATT_SIZEP(PTR) & VARATT_MASK_FLAGS) != 0)
#define VARATT_IS_EXTERNAL(PTR)   ((VARATT_SIZEP(PTR) & VARATT_FLAG_EXTERNAL) != 0)
#define VARATT_IS_COMPRESSED(PTR)   ((VARATT_SIZEP(PTR) & VARATT_FLAG_COMPRESSED) != 0)
#define SIZEOF_DATUM   SIZEOF_UNSIGNED_LONG
#define GET_1_BYTE(datum)   (((Datum) (datum)) & 0x000000ff)
#define GET_2_BYTES(datum)   (((Datum) (datum)) & 0x0000ffff)
#define GET_4_BYTES(datum)   (((Datum) (datum)) & 0xffffffff)
#define SET_1_BYTE(value)   (((Datum) (value)) & 0x000000ff)
#define SET_2_BYTES(value)   (((Datum) (value)) & 0x0000ffff)
#define SET_4_BYTES(value)   (((Datum) (value)) & 0xffffffff)
#define DatumGetBool(X)   ((bool) (((Datum) (X)) != 0))
#define BoolGetDatum(X)   ((Datum) ((X) ? 1 : 0))
#define DatumGetChar(X)   ((char) GET_1_BYTE(X))
#define CharGetDatum(X)   ((Datum) SET_1_BYTE(X))
#define Int8GetDatum(X)   ((Datum) SET_1_BYTE(X))
#define DatumGetUInt8(X)   ((uint8) GET_1_BYTE(X))
#define UInt8GetDatum(X)   ((Datum) SET_1_BYTE(X))
#define DatumGetInt16(X)   ((int16) GET_2_BYTES(X))
#define Int16GetDatum(X)   ((Datum) SET_2_BYTES(X))
#define DatumGetUInt16(X)   ((uint16) GET_2_BYTES(X))
#define UInt16GetDatum(X)   ((Datum) SET_2_BYTES(X))
#define DatumGetInt32(X)   ((int32) GET_4_BYTES(X))
#define Int32GetDatum(X)   ((Datum) SET_4_BYTES(X))
#define DatumGetUInt32(X)   ((uint32) GET_4_BYTES(X))
#define UInt32GetDatum(X)   ((Datum) SET_4_BYTES(X))
#define DatumGetObjectId(X)   ((Oid) GET_4_BYTES(X))
#define ObjectIdGetDatum(X)   ((Datum) SET_4_BYTES(X))
#define DatumGetTransactionId(X)   ((TransactionId) GET_4_BYTES(X))
#define TransactionIdGetDatum(X)   ((Datum) SET_4_BYTES((X)))
#define DatumGetCommandId(X)   ((CommandId) GET_4_BYTES(X))
#define CommandIdGetDatum(X)   ((Datum) SET_4_BYTES(X))
#define DatumGetPointer(X)   ((Pointer) (X))
#define PointerGetDatum(X)   ((Datum) (X))
#define DatumGetCString(X)   ((char *) DatumGetPointer(X))
#define CStringGetDatum(X)   PointerGetDatum(X)
#define DatumGetName(X)   ((Name) DatumGetPointer(X))
#define NameGetDatum(X)   PointerGetDatum(X)
#define DatumGetInt64(X)   (* ((int64 *) DatumGetPointer(X)))
#define DatumGetFloat4(X)   (* ((float4 *) DatumGetPointer(X)))
#define DatumGetFloat8(X)   (* ((float8 *) DatumGetPointer(X)))
#define DatumGetFloat32(X)   ((float32) DatumGetPointer(X))
#define Float32GetDatum(X)   PointerGetDatum(X)
#define DatumGetFloat64(X)   ((float64) DatumGetPointer(X))
#define Float64GetDatum(X)   PointerGetDatum(X)
#define Int64GetDatumFast(X)   PointerGetDatum(&(X))
#define Float4GetDatumFast(X)   PointerGetDatum(&(X))
#define Float8GetDatumFast(X)   PointerGetDatum(&(X))
#define Trap(condition, errorType)
#define TrapMacro(condition, errorType)
#define Assert(condition)
#define AssertMacro(condition)   ((void)true)
#define AssertArg(condition)
#define AssertState(condition)
#define assert_enabled   0
#define CATALOG(name, oid)   typedef struct CppConcat(FormData_,name)
#define BKI_BOOTSTRAP
#define BKI_SHARED_RELATION
#define BKI_WITHOUT_OIDS
#define DATA(x)   extern int no_such_variable
#define DESCR(x)   extern int no_such_variable

'typedefs'

typedef struct varattrib varattrib
typedef unsigned long Datum
typedef Datum * DatumPtr
typedef int4 aclitem

Funciones

Datum Int64GetDatum (int64 X)
Datum Float4GetDatum (float4 X)
Datum Float8GetDatum (float8 X)
int ExceptionalCondition (char *conditionName, char *errorType, char *fileName, int lineNumber)

Variables

DLLIMPORT bool assert_enabled

Documentación de los 'defines'

#define Assert (   condition)
#define assert_enabled   0
#define AssertArg (   condition)
#define AssertMacro (   condition)    ((void)true)
#define AssertState (   condition)
#define BKI_BOOTSTRAP
#define BKI_SHARED_RELATION
#define BKI_WITHOUT_OIDS
#define BoolGetDatum (   X)    ((Datum) ((X) ? 1 : 0))
#define CATALOG (   name,
  oid 
)    typedef struct CppConcat(FormData_,name)
#define CharGetDatum (   X)    ((Datum) SET_1_BYTE(X))
#define CommandIdGetDatum (   X)    ((Datum) SET_4_BYTES(X))
#define CStringGetDatum (   X)    PointerGetDatum(X)
#define DATA (   x)    extern int no_such_variable
#define DatumGetBool (   X)    ((bool) (((Datum) (X)) != 0))
#define DatumGetChar (   X)    ((char) GET_1_BYTE(X))
#define DatumGetCommandId (   X)    ((CommandId) GET_4_BYTES(X))
#define DatumGetCString (   X)    ((char *) DatumGetPointer(X))
#define DatumGetFloat32 (   X)    ((float32) DatumGetPointer(X))
#define DatumGetFloat4 (   X)    (* ((float4 *) DatumGetPointer(X)))
#define DatumGetFloat64 (   X)    ((float64) DatumGetPointer(X))
#define DatumGetFloat8 (   X)    (* ((float8 *) DatumGetPointer(X)))
#define DatumGetInt16 (   X)    ((int16) GET_2_BYTES(X))
#define DatumGetInt32 (   X)    ((int32) GET_4_BYTES(X))
#define DatumGetInt64 (   X)    (* ((int64 *) DatumGetPointer(X)))
#define DatumGetName (   X)    ((Name) DatumGetPointer(X))
#define DatumGetObjectId (   X)    ((Oid) GET_4_BYTES(X))
#define DatumGetPointer (   X)    ((Pointer) (X))
#define DatumGetTransactionId (   X)    ((TransactionId) GET_4_BYTES(X))
#define DatumGetUInt16 (   X)    ((uint16) GET_2_BYTES(X))
#define DatumGetUInt32 (   X)    ((uint32) GET_4_BYTES(X))
#define DatumGetUInt8 (   X)    ((uint8) GET_1_BYTE(X))
#define DESCR (   x)    extern int no_such_variable
#define Float32GetDatum (   X)    PointerGetDatum(X)
#define Float4GetDatumFast (   X)    PointerGetDatum(&(X))
#define Float64GetDatum (   X)    PointerGetDatum(X)
#define Float8GetDatumFast (   X)    PointerGetDatum(&(X))
#define GET_1_BYTE (   datum)    (((Datum) (datum)) & 0x000000ff)
#define GET_2_BYTES (   datum)    (((Datum) (datum)) & 0x0000ffff)
#define GET_4_BYTES (   datum)    (((Datum) (datum)) & 0xffffffff)
#define Int16GetDatum (   X)    ((Datum) SET_2_BYTES(X))
#define Int32GetDatum (   X)    ((Datum) SET_4_BYTES(X))
#define Int64GetDatumFast (   X)    PointerGetDatum(&(X))
#define Int8GetDatum (   X)    ((Datum) SET_1_BYTE(X))
#define NameGetDatum (   X)    PointerGetDatum(X)
#define ObjectIdGetDatum (   X)    ((Datum) SET_4_BYTES(X))
#define PointerGetDatum (   X)    ((Datum) (X))
#define SET_1_BYTE (   value)    (((Datum) (value)) & 0x000000ff)
#define SET_2_BYTES (   value)    (((Datum) (value)) & 0x0000ffff)
#define SET_4_BYTES (   value)    (((Datum) (value)) & 0xffffffff)
#define SIZEOF_DATUM   SIZEOF_UNSIGNED_LONG
#define TransactionIdGetDatum (   X)    ((Datum) SET_4_BYTES((X)))
#define Trap (   condition,
  errorType 
)
Valor:
do { \
    if ((assert_enabled) && (condition)) \
      ExceptionalCondition(CppAsString(condition), (errorType), \
                           __FILE__, __LINE__); \
  } while (0)
#define TrapMacro (   condition,
  errorType 
)
Valor:
((bool) ((! assert_enabled) || ! (condition) || \
           (ExceptionalCondition(CppAsString(condition), (errorType), \
                                 __FILE__, __LINE__))))
#define UInt16GetDatum (   X)    ((Datum) SET_2_BYTES(X))
#define UInt32GetDatum (   X)    ((Datum) SET_4_BYTES(X))
#define UInt8GetDatum (   X)    ((Datum) SET_1_BYTE(X))
#define VARATT_CDATA (   PTR)    (((varattrib *)(PTR))->va_content.va_compressed.va_data)
#define VARATT_DATA (   PTR)    (((varattrib *)(PTR))->va_content.va_data)
#define VARATT_FLAG_COMPRESSED   0x40000000
#define VARATT_FLAG_EXTERNAL   0x80000000
#define VARATT_IS_COMPRESSED (   PTR)    ((VARATT_SIZEP(PTR) & VARATT_FLAG_COMPRESSED) != 0)
#define VARATT_IS_EXTENDED (   PTR)    ((VARATT_SIZEP(PTR) & VARATT_MASK_FLAGS) != 0)
#define VARATT_IS_EXTERNAL (   PTR)    ((VARATT_SIZEP(PTR) & VARATT_FLAG_EXTERNAL) != 0)
#define VARATT_MASK_FLAGS   0xc0000000
#define VARATT_MASK_SIZE   0x3fffffff
#define VARATT_SIZE (   PTR)    (VARATT_SIZEP(PTR) & VARATT_MASK_SIZE)
#define VARATT_SIZEP (   _PTR)    (((varattrib *)(_PTR))->va_header)
#define VARDATA (   __PTR)    VARATT_DATA(__PTR)
#define VARSIZE (   __PTR)    VARATT_SIZE(__PTR)

Documentación de los 'typedefs'

typedef int4 aclitem
typedef unsigned long Datum
typedef Datum* DatumPtr
typedef struct varattrib varattrib

Documentación de las funciones

int ExceptionalCondition ( char *  conditionName,
char *  errorType,
char *  fileName,
int  lineNumber 
)
Datum Float4GetDatum ( float4  X)
Datum Float8GetDatum ( float8  X)
Datum Int64GetDatum ( int64  X)

Documentación de las variables

DLLIMPORT bool assert_enabled
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'