/
balmaster
/
postgres
Обзор
Документация
Войти
/
balmaster
/
postgres
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/pl/plpython/plpython.h
41 строка
1 KB
Peter Eisentraut
Enable Python Limited API for PL/Python on MSVC
14 янв 2026, 12:43
14 янв 2026, 12:43
2bc60f8
Код
Авторство
О чём код?
/*------------------------------------------------------------------------- * * plpython.h - Python as a procedural language for PostgreSQL * * Note: this file is #include'd by each of the sub-module header files * (plpy_elog.h, etc). It's therefore unnecessary for any plpython *.c * files to include it directly. * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/pl/plpython/plpython.h * *------------------------------------------------------------------------- */ #ifndef PLPYTHON_H #define PLPYTHON_H /* postgres.h needs to be included before Python.h, as usual */ #if !defined(POSTGRES_H) #error postgres.h must be included before plpython.h #elif defined(Py_PYTHON_H) #error Python.h must be included via plpython.h #endif /* * Enable Python Limited API */ #define Py_LIMITED_API 0x03020000 /* * Pull in Python headers via a wrapper header, to control the scope of * the system_header pragma therein. */ #include "plpython_system.h" /* define our text domain for translations */ #undef TEXTDOMAIN #define TEXTDOMAIN PG_TEXTDOMAIN("plpython") #endif /* PLPYTHON_H */