PostgreSQL Source Code  git master
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  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
6  * Portions Copyright (c) 1994, Regents of the University of California
7  *
8  * src/pl/plpython/plpython.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef PLPYTHON_H
13 #define PLPYTHON_H
14 
15 /* postgres.h needs to be included before Python.h, as usual */
16 #if !defined(POSTGRES_H)
17 #error postgres.h must be included before plpython.h
18 #elif defined(Py_PYTHON_H)
19 #error Python.h must be included via plpython.h
20 #endif
21 
22 /*
23  * Pull in Python headers via a wrapper header, to control the scope of
24  * the system_header pragma therein.
25  */
26 #include "plpython_system.h"
27 
28 /* define our text domain for translations */
29 #undef TEXTDOMAIN
30 #define TEXTDOMAIN PG_TEXTDOMAIN("plpython")
31 
32 /*
33  * Used throughout, so it's easier to just include it everywhere.
34  */
35 #include "plpy_util.h"
36 
37 #endif /* PLPYTHON_H */