Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agzRi-0003iE-FO for pgsql-committers@arkaria.postgresql.org; Fri, 18 Mar 2016 18:48:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agzRi-000723-25 for pgsql-committers@arkaria.postgresql.org; Fri, 18 Mar 2016 18:48:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agzRV-0006oK-9W for pgsql-committers@postgresql.org; Fri, 18 Mar 2016 18:48:13 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agzRN-0008LW-Vb for pgsql-committers@postgresql.org; Fri, 18 Mar 2016 18:48:12 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id D32C921C70E8; Fri, 18 Mar 2016 21:48:03 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pzvFYyR1meAF; Fri, 18 Mar 2016 21:48:02 +0300 (MSK) Received: from fujitsu (unknown [188.123.231.37]) by mail.postgrespro.ru (Postfix) with ESMTPSA id C2AE421C7017; Fri, 18 Mar 2016 21:48:01 +0300 (MSK) Date: Fri, 18 Mar 2016 21:47:42 +0300 From: Aleksander Alekseev To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Clean up some misplaced #includes. Message-ID: <20160318214742.5472fa80@fujitsu> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/lAhYhiHa67WKlRI67XxGtDR" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --MP_/lAhYhiHa67WKlRI67XxGtDR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline > Clean up some misplaced #includes. In case you are interested here is a patch that fixes some unused imports I managed to find. -- Best regards, Aleksander Alekseev http://eax.me/ --MP_/lAhYhiHa67WKlRI67XxGtDR Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=unused-imports.diff diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f70bb49..ceeb045 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -32,8 +32,6 @@ #include "access/twophase.h" #include "access/xact.h" #include "access/xlog_internal.h" -#include "access/xloginsert.h" -#include "access/xlogreader.h" #include "access/xlogutils.h" #include "catalog/catversion.h" #include "catalog/pg_control.h" @@ -46,31 +44,19 @@ #include "postmaster/startup.h" #include "replication/basebackup.h" #include "replication/logical.h" -#include "replication/slot.h" -#include "replication/origin.h" #include "replication/snapbuild.h" #include "replication/walreceiver.h" #include "replication/walsender.h" -#include "storage/barrier.h" -#include "storage/bufmgr.h" -#include "storage/fd.h" #include "storage/ipc.h" #include "storage/large_object.h" -#include "storage/latch.h" #include "storage/pmsignal.h" #include "storage/predicate.h" -#include "storage/proc.h" #include "storage/procarray.h" #include "storage/reinit.h" #include "storage/smgr.h" -#include "storage/spin.h" #include "utils/builtins.h" -#include "utils/guc.h" -#include "utils/memutils.h" #include "utils/ps_status.h" #include "utils/relmapper.h" -#include "utils/snapmgr.h" -#include "utils/timestamp.h" #include "pg_trace.h" extern uint32 bootstrap_data_checksum_version; diff --git a/src/test/regress/regress.c b/src/test/regress/regress.c index e7826a4..d3fc910 100644 --- a/src/test/regress/regress.c +++ b/src/test/regress/regress.c @@ -16,12 +16,9 @@ #include "postgres.h" -#include -#include #include #include "access/htup_details.h" -#include "access/transam.h" #include "access/tuptoaster.h" #include "access/xact.h" #include "catalog/pg_type.h" @@ -30,7 +27,6 @@ #include "executor/executor.h" #include "executor/spi.h" #include "miscadmin.h" -#include "port/atomics.h" #include "utils/builtins.h" #include "utils/geo_decls.h" #include "utils/rel.h" --MP_/lAhYhiHa67WKlRI67XxGtDR Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers --MP_/lAhYhiHa67WKlRI67XxGtDR--