From 49bff412edd9eb226e146f6e4db7b5a8e843bd1f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 16 Feb 2018 12:14:08 -0500 Subject: Remove some inappropriate #includes. Other header files should never #include postgres.h (nor postgres_fe.h, nor c.h), per project policy. Also, there's no need for any backend .c file to explicitly include elog.h or palloc.h, because postgres.h pulls those in already. Extracted from a larger patch by Kyotaro Horiguchi. The rest of the removals he suggests require more study, but these are no-brainers. Discussion: https://postgr.es/m/20180215.200447.209320006.horiguchi.kyotaro@lab.ntt.co.jp --- src/pl/plpython/plpy_spi.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/pl/plpython/plpy_spi.h') diff --git a/src/pl/plpython/plpy_spi.h b/src/pl/plpython/plpy_spi.h index d6b0a4707b..5a0eef78dc 100644 --- a/src/pl/plpython/plpy_spi.h +++ b/src/pl/plpython/plpy_spi.h @@ -5,7 +5,6 @@ #ifndef PLPY_SPI_H #define PLPY_SPI_H -#include "utils/palloc.h" #include "utils/resowner.h" extern PyObject *PLy_spi_prepare(PyObject *self, PyObject *args); -- cgit v1.2.1