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")
 

Typedefs

typedef int Py_ssize_t
 

Macro Definition Documentation

◆ PY_SSIZE_T_MAX

#define PY_SSIZE_T_MAX   INT_MAX

Definition at line 66 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 67 of file plpython.h.

◆ PyBytes_AsString

#define PyBytes_AsString   PyString_AsString

◆ PyBytes_FromStringAndSize

#define PyBytes_FromStringAndSize   PyString_FromStringAndSize

Definition at line 85 of file plpython.h.

Referenced by PLyBytes_FromBytea(), and PLyUnicode_Bytes().

◆ PyBytes_Size

#define PyBytes_Size   PyString_Size

Definition at line 86 of file plpython.h.

Referenced by PLyObject_AsString(), and PLyObject_ToBytea().

◆ PyObject_Bytes

#define PyObject_Bytes   PyObject_Str

Definition at line 87 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 111 of file plpython.h.

◆ TEXTDOMAIN

#define TEXTDOMAIN   PG_TEXTDOMAIN("plpython")

Definition at line 122 of file plpython.h.

Typedef Documentation

◆ Py_ssize_t

Definition at line 64 of file plpython.h.