PostgreSQL Source Code git master
Loading...
Searching...
No Matches
plpy_planobject.h File Reference
#include "executor/spi.h"
#include "plpy_typeio.h"
Include dependency graph for plpy_planobject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PLyPlanObject
 

Typedefs

typedef struct PLyPlanObject PLyPlanObject
 

Functions

void PLy_plan_init_type (void)
 
PyObjectPLy_plan_new (void)
 
bool is_PLyPlanObject (PyObject *ob)
 

Typedef Documentation

◆ PLyPlanObject

Function Documentation

◆ is_PLyPlanObject()

bool is_PLyPlanObject ( PyObject ob)
extern

Definition at line 85 of file plpy_planobject.c.

86{
87 return ob->ob_type == PLy_PlanType;
88}
static PyTypeObject * PLy_PlanType
static int fb(int x)

References fb(), and PLy_PlanType.

Referenced by PLy_spi_execute().

◆ PLy_plan_init_type()

void PLy_plan_init_type ( void  )
extern

Definition at line 56 of file plpy_planobject.c.

57{
59 if (!PLy_PlanType)
60 elog(ERROR, "could not initialize PLy_PlanType");
61}
#define ERROR
Definition elog.h:39
#define elog(elevel,...)
Definition elog.h:226
static PyType_Spec PLyPlan_spec

References elog, ERROR, fb(), PLy_PlanType, and PLyPlan_spec.

Referenced by PyInit_plpy().

◆ PLy_plan_new()

PyObject * PLy_plan_new ( void  )
extern

Definition at line 64 of file plpy_planobject.c.

65{
67
69 return NULL;
70#if PY_VERSION_HEX < 0x03080000
71 /* Workaround for Python issue 35810; no longer necessary in Python 3.8 */
73#endif
74
75 ob->plan = NULL;
76 ob->nargs = 0;
77 ob->types = NULL;
78 ob->args = NULL;
79 ob->mcxt = NULL;
80
81 return (PyObject *) ob;
82}

References fb(), and PLy_PlanType.

Referenced by PLy_spi_prepare().