/
ihtiandr9
/
httpserver
Обзор
Документация
Войти
/
ihtiandr9
/
httpserver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
class-stylesheet
cpp/third_party/postgresql/include/pgsql/server/plpy_main.h
31 строка
939 B
ihtiandr9 (note)
build Win. Supported only x64
25 авг 2025, 05:07
25 авг 2025, 05:07
ea9dcd2
Код
Авторство
О чём код?
/* * src/pl/plpython/plpy_main.h */ #ifndef PLPY_MAIN_H #define PLPY_MAIN_H #include "plpy_procedure.h" /* the interpreter's globals dict */ extern PyObject *PLy_interp_globals; /* * A stack of PL/Python execution contexts. Each time user-defined Python code * is called, an execution context is created and put on the stack. After the * Python code returns, the context is destroyed. */ typedef struct PLyExecutionContext { PLyProcedure *curr_proc; /* the currently executing procedure */ MemoryContext scratch_ctx; /* a context for things like type I/O */ struct PLyExecutionContext *next; /* previous stack level */ } PLyExecutionContext; /* Get the current execution context */ extern PLyExecutionContext *PLy_current_execution_context(void); /* Get the scratch memory context for specified execution context */ extern MemoryContext PLy_get_scratch_context(PLyExecutionContext *context); #endif /* PLPY_MAIN_H */