From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Remove some inappropriate #includes. |
Date: | 2018-02-16 17:14:14 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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/[email protected]
Branch
------
master
Modified Files
--------------
src/backend/lib/knapsack.c | 1 -
src/backend/replication/basebackup.c | 1 -
src/backend/utils/misc/pg_config.c | 1 -
src/backend/utils/misc/rls.c | 1 -
src/include/lib/knapsack.h | 1 -
src/pl/plpython/plpy_spi.h | 1 -
src/pl/plpython/plpy_util.c | 1 -
7 files changed, 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2018-02-16 21:22:05 | pgsql: Fix crash when canceling parallel query |
Previous Message | Peter Eisentraut | 2018-02-16 15:39:00 | pgsql: Rename enable_partition_wise_join to enable_partitionwise_join |