PostgreSQL Source Code  git master
plpython.h File Reference
#include <Python.h>
#include <compile.h>
#include <eval.h>
#include "plpy_util.h"
Include dependency graph for plpython.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PY_SSIZE_T_MAX   INT_MAX
 
#define PY_SSIZE_T_MIN   INT_MIN
 
#define PyBytes_AsString   PyString_AsString
 
#define PyBytes_FromStringAndSize   PyString_FromStringAndSize
 
#define PyBytes_Size   PyString_Size
 
#define PyObject_Bytes   PyObject_Str
 
#define PyVarObject_HEAD_INIT(type, size)   PyObject_HEAD_INIT(type) size,
 
#define TEXTDOMAIN   PG_TEXTDOMAIN("plpython")
 
#define vsnprintf   pg_vsnprintf
 
#define snprintf   pg_snprintf
 
#define vsprintf   pg_vsprintf
 
#define sprintf   pg_sprintf
 
#define vfprintf   pg_vfprintf
 
#define fprintf   pg_fprintf
 
#define vprintf   pg_vprintf
 
#define printf(...)   pg_printf(__VA_ARGS__)
 

Typedefs

typedef int Py_ssize_t
 

Macro Definition Documentation

◆ fprintf

#define fprintf   pg_fprintf

Definition at line 160 of file plpython.h.

◆ printf

#define printf (   ...)    pg_printf(__VA_ARGS__)

Definition at line 162 of file plpython.h.

◆ PY_SSIZE_T_MAX

#define PY_SSIZE_T_MAX   INT_MAX

Definition at line 68 of file plpython.h.

Referenced by PLy_cursor_fetch(), and PLy_spi_execute_fetch_result().

◆ PY_SSIZE_T_MIN

#define PY_SSIZE_T_MIN   INT_MIN

Definition at line 69 of file plpython.h.

◆ PyBytes_AsString

#define PyBytes_AsString   PyString_AsString

◆ PyBytes_FromStringAndSize

#define PyBytes_FromStringAndSize   PyString_FromStringAndSize

Definition at line 87 of file plpython.h.

Referenced by PLyBytes_FromBytea(), and PLyUnicode_Bytes().

◆ PyBytes_Size

#define PyBytes_Size   PyString_Size

Definition at line 88 of file plpython.h.

Referenced by PLyObject_AsString(), and PLyObject_ToBytea().

◆ PyObject_Bytes

#define PyObject_Bytes   PyObject_Str

Definition at line 89 of file plpython.h.

Referenced by PLyObject_ToBytea().

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)    PyObject_HEAD_INIT(type) size,

Definition at line 113 of file plpython.h.

◆ snprintf

#define snprintf   pg_snprintf

Definition at line 156 of file plpython.h.

◆ sprintf

#define sprintf   pg_sprintf

Definition at line 158 of file plpython.h.

◆ TEXTDOMAIN

#define TEXTDOMAIN   PG_TEXTDOMAIN("plpython")

Definition at line 124 of file plpython.h.

◆ vfprintf

#define vfprintf   pg_vfprintf

Definition at line 159 of file plpython.h.

◆ vprintf

#define vprintf   pg_vprintf

Definition at line 161 of file plpython.h.

◆ vsnprintf

#define vsnprintf   pg_vsnprintf

Definition at line 155 of file plpython.h.

◆ vsprintf

#define vsprintf   pg_vsprintf

Definition at line 157 of file plpython.h.

Typedef Documentation

◆ Py_ssize_t

typedef int Py_ssize_t

Definition at line 66 of file plpython.h.