PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
plpython.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* plpython.h - Python as a procedural language for PostgreSQL
4
*
5
* Note: this file is #include'd by each of the sub-module header files
6
* (plpy_elog.h, etc). It's therefore unnecessary for any plpython *.c
7
* files to include it directly.
8
*
9
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
10
* Portions Copyright (c) 1994, Regents of the University of California
11
*
12
* src/pl/plpython/plpython.h
13
*
14
*-------------------------------------------------------------------------
15
*/
16
#ifndef PLPYTHON_H
17
#define PLPYTHON_H
18
19
/* postgres.h needs to be included before Python.h, as usual */
20
#if !defined(POSTGRES_H)
21
#error postgres.h must be included before plpython.h
22
#elif defined(Py_PYTHON_H)
23
#error Python.h must be included via plpython.h
24
#endif
25
26
/*
27
* Enable Python Limited API
28
*
29
* XXX currently not enabled on MSVC because of build failures
30
*/
31
#if !defined(_MSC_VER)
32
#define Py_LIMITED_API 0x03020000
33
#endif
34
35
/*
36
* Pull in Python headers via a wrapper header, to control the scope of
37
* the system_header pragma therein.
38
*/
39
#include "
plpython_system.h
"
40
41
/* define our text domain for translations */
42
#undef TEXTDOMAIN
43
#define TEXTDOMAIN PG_TEXTDOMAIN("plpython"
)
44
45
#endif
/* PLPYTHON_H */
plpython_system.h
src
pl
plpython
plpython.h
Generated on Fri Jun 6 2025 18:13:28 for PostgreSQL Source Code by
1.9.4