PostgreSQL Source Code  git master
postgres_ext.h File Reference
#include <stdint.h>
Include dependency graph for postgres_ext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InvalidOid   ((Oid) 0)
 
#define OID_MAX   UINT_MAX
 
#define atooid(x)   ((Oid) strtoul((x), NULL, 10))
 
#define PG_DIAG_SEVERITY   'S'
 
#define PG_DIAG_SEVERITY_NONLOCALIZED   'V'
 
#define PG_DIAG_SQLSTATE   'C'
 
#define PG_DIAG_MESSAGE_PRIMARY   'M'
 
#define PG_DIAG_MESSAGE_DETAIL   'D'
 
#define PG_DIAG_MESSAGE_HINT   'H'
 
#define PG_DIAG_STATEMENT_POSITION   'P'
 
#define PG_DIAG_INTERNAL_POSITION   'p'
 
#define PG_DIAG_INTERNAL_QUERY   'q'
 
#define PG_DIAG_CONTEXT   'W'
 
#define PG_DIAG_SCHEMA_NAME   's'
 
#define PG_DIAG_TABLE_NAME   't'
 
#define PG_DIAG_COLUMN_NAME   'c'
 
#define PG_DIAG_DATATYPE_NAME   'd'
 
#define PG_DIAG_CONSTRAINT_NAME   'n'
 
#define PG_DIAG_SOURCE_FILE   'F'
 
#define PG_DIAG_SOURCE_LINE   'L'
 
#define PG_DIAG_SOURCE_FUNCTION   'R'
 

Typedefs

typedef unsigned int Oid
 
typedef int64_t pg_int64
 

Macro Definition Documentation

◆ atooid

#define atooid (   x)    ((Oid) strtoul((x), NULL, 10))

Definition at line 42 of file postgres_ext.h.

◆ InvalidOid

#define InvalidOid   ((Oid) 0)

Definition at line 36 of file postgres_ext.h.

◆ OID_MAX

#define OID_MAX   UINT_MAX

Definition at line 39 of file postgres_ext.h.

◆ PG_DIAG_COLUMN_NAME

#define PG_DIAG_COLUMN_NAME   'c'

Definition at line 66 of file postgres_ext.h.

◆ PG_DIAG_CONSTRAINT_NAME

#define PG_DIAG_CONSTRAINT_NAME   'n'

Definition at line 68 of file postgres_ext.h.

◆ PG_DIAG_CONTEXT

#define PG_DIAG_CONTEXT   'W'

Definition at line 63 of file postgres_ext.h.

◆ PG_DIAG_DATATYPE_NAME

#define PG_DIAG_DATATYPE_NAME   'd'

Definition at line 67 of file postgres_ext.h.

◆ PG_DIAG_INTERNAL_POSITION

#define PG_DIAG_INTERNAL_POSITION   'p'

Definition at line 61 of file postgres_ext.h.

◆ PG_DIAG_INTERNAL_QUERY

#define PG_DIAG_INTERNAL_QUERY   'q'

Definition at line 62 of file postgres_ext.h.

◆ PG_DIAG_MESSAGE_DETAIL

#define PG_DIAG_MESSAGE_DETAIL   'D'

Definition at line 58 of file postgres_ext.h.

◆ PG_DIAG_MESSAGE_HINT

#define PG_DIAG_MESSAGE_HINT   'H'

Definition at line 59 of file postgres_ext.h.

◆ PG_DIAG_MESSAGE_PRIMARY

#define PG_DIAG_MESSAGE_PRIMARY   'M'

Definition at line 57 of file postgres_ext.h.

◆ PG_DIAG_SCHEMA_NAME

#define PG_DIAG_SCHEMA_NAME   's'

Definition at line 64 of file postgres_ext.h.

◆ PG_DIAG_SEVERITY

#define PG_DIAG_SEVERITY   'S'

Definition at line 54 of file postgres_ext.h.

◆ PG_DIAG_SEVERITY_NONLOCALIZED

#define PG_DIAG_SEVERITY_NONLOCALIZED   'V'

Definition at line 55 of file postgres_ext.h.

◆ PG_DIAG_SOURCE_FILE

#define PG_DIAG_SOURCE_FILE   'F'

Definition at line 69 of file postgres_ext.h.

◆ PG_DIAG_SOURCE_FUNCTION

#define PG_DIAG_SOURCE_FUNCTION   'R'

Definition at line 71 of file postgres_ext.h.

◆ PG_DIAG_SOURCE_LINE

#define PG_DIAG_SOURCE_LINE   'L'

Definition at line 70 of file postgres_ext.h.

◆ PG_DIAG_SQLSTATE

#define PG_DIAG_SQLSTATE   'C'

Definition at line 56 of file postgres_ext.h.

◆ PG_DIAG_STATEMENT_POSITION

#define PG_DIAG_STATEMENT_POSITION   'P'

Definition at line 60 of file postgres_ext.h.

◆ PG_DIAG_TABLE_NAME

#define PG_DIAG_TABLE_NAME   't'

Definition at line 65 of file postgres_ext.h.

Typedef Documentation

◆ Oid

typedef unsigned int Oid

Definition at line 31 of file postgres_ext.h.

◆ pg_int64

typedef int64_t pg_int64

Definition at line 47 of file postgres_ext.h.