Remove some inappropriate #includes.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2018 17:14:08 +0000 (12:14 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2018 17:14:08 +0000 (12:14 -0500)
commit49bff412edd9eb226e146f6e4db7b5a8e843bd1f
treeb8a4e408049f34a5f519a3952468d33f250e77cb
parent2fb1abaeb016aeb45b9e6d0b81b7a7e92bb251b9
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/backend/lib/knapsack.c
src/backend/replication/basebackup.c
src/backend/utils/misc/pg_config.c
src/backend/utils/misc/rls.c
src/include/lib/knapsack.h
src/pl/plpython/plpy_spi.h
src/pl/plpython/plpy_util.c