mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-16 03:17:00 +08:00
Remove unused #include's from contrib, pl, test .c files
as determined by IWYU Similar to commit dbbca2cf299, but for contrib, pl, and src/test/. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org
This commit is contained in:
@ -8,14 +8,12 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "access/xact.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "plpy_cursorobject.h"
|
||||
#include "plpy_elog.h"
|
||||
#include "plpy_main.h"
|
||||
#include "plpy_planobject.h"
|
||||
#include "plpy_procedure.h"
|
||||
#include "plpy_resultobject.h"
|
||||
#include "plpy_spi.h"
|
||||
#include "plpython.h"
|
||||
|
||||
@ -18,10 +18,8 @@
|
||||
#include "plpy_procedure.h"
|
||||
#include "plpy_subxactobject.h"
|
||||
#include "plpython.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/typcache.h"
|
||||
|
||||
/* saved state for a set-returning function */
|
||||
typedef struct PLySRFState
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "plpy_cursorobject.h"
|
||||
#include "plpy_elog.h"
|
||||
#include "plpy_planobject.h"
|
||||
#include "plpy_spi.h"
|
||||
#include "plpython.h"
|
||||
|
||||
@ -6,11 +6,9 @@
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/xact.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "plpy_cursorobject.h"
|
||||
#include "plpy_elog.h"
|
||||
#include "plpy_main.h"
|
||||
#include "plpy_planobject.h"
|
||||
#include "plpy_plpymodule.h"
|
||||
#include "plpy_resultobject.h"
|
||||
@ -18,7 +16,6 @@
|
||||
#include "plpy_subxactobject.h"
|
||||
#include "plpython.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/snapmgr.h"
|
||||
|
||||
HTAB *PLy_spi_exceptions = NULL;
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/htup_details.h"
|
||||
#include "access/transam.h"
|
||||
#include "catalog/pg_proc.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "funcapi.h"
|
||||
@ -17,8 +16,6 @@
|
||||
#include "plpython.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/hsearch.h"
|
||||
#include "utils/inval.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "access/htup_details.h"
|
||||
#include "access/xact.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "executor/spi.h"
|
||||
@ -18,12 +17,10 @@
|
||||
#include "plpy_main.h"
|
||||
#include "plpy_planobject.h"
|
||||
#include "plpy_plpymodule.h"
|
||||
#include "plpy_procedure.h"
|
||||
#include "plpy_resultobject.h"
|
||||
#include "plpy_spi.h"
|
||||
#include "plpython.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
static PyObject *PLy_spi_execute_query(char *query, long limit);
|
||||
static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *tuptable,
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
#include "plpy_elog.h"
|
||||
#include "plpy_util.h"
|
||||
#include "plpython.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
/*
|
||||
* Convert a Python unicode object to a Python string/bytes object in
|
||||
|
||||
Reference in New Issue
Block a user