Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvT2f-0003SC-89 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 21:00:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvT2e-0003U8-2l for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 21:00:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvT2d-0003RA-Mz for pgsql-hackers@lists.postgresql.org; Wed, 07 Aug 2019 21:00:15 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvT2a-0006Ju-Ok for pgsql-hackers@postgresql.org; Wed, 07 Aug 2019 21:00:15 +0000 Received: by mail-qk1-x741.google.com with SMTP id s145so67004017qke.7 for ; Wed, 07 Aug 2019 14:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=L/3FugHSWLbLoUWEOJindxG4VAA7zFremcj1mQ28KFE=; b=qKczwUleVtiyJeohXFQ8FuEShXC4DgpDzEdL8Nc+bDXm24ssIiHgJEJ3QsJdqYOoZ0 X9KLJOmiAEsMXrOireLyMRod29Q2x9E0s0mY2RXx2ln7WfGOiy0rJ/Rq0dPN01wO1mac 4wtTWSJSsYO1JNEVTcyMPC9M3AA4+oNiNLg7HJnsFZrU9Uxy2Okege5aPC8Q1RpGjI4O MpJQSiEbXrRE/+xQV6O/gckWKnSLvTxvOeRFFw50X7kkETWdmWUMg/x1klhZzd7S1Ck1 28bxfDW5y2D9ZZqIg4AcnweiMsEo1m2aRvUQ7MapmJyPPBsk/Ye9ukjRtPcsWuvt4PTn zYVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=L/3FugHSWLbLoUWEOJindxG4VAA7zFremcj1mQ28KFE=; b=s+g/XRgqUwNVe7WBNBEOpIGy6cYDuQN5Dx5+uEIJUhFFRBoJZa8mB8xxa4Sx83DWnD nEfr3nzPiM0FyKO9fWj9QJJOqD0PHO2ZUGpF8wz+7WEgg5sxEVAw5P+FMTE4gBZ1GQ2o GWHerEDxX4qT8D6yRdqTP0fFeKXfu1sriG0LqHkdSO6uOfpl6vd9j9LH82fhyKsPv6jW AuWzbumYNd4HGwO/VG8CqvODglxKzPpbwS4g30w1o8ZLgLEtSyDJsnIkjdQb6Wymcshv tcGDQtFb4CTh6QW1oJ/JfXmRjqnspMFhv9+jbpvGdWDGNgExgof2cS9BISM7zDnhlz0F p6tg== X-Gm-Message-State: APjAAAU469QrQ76USJnvPLLnpGASSmvCgOac7lF4AWxULzyztQ9Z7nt+ vtnJNAKWjhXvblEIjpRmALWuzg== X-Google-Smtp-Source: APXvYqzHvW0nPTwPOvd/uYonEii8eeYedNFnP9BwIQ19BoVL8Mj1bIshUcPYMh5eXMVluqb9Kz+vuQ== X-Received: by 2002:a05:620a:166a:: with SMTP id d10mr9781408qko.195.1565211610963; Wed, 07 Aug 2019 14:00:10 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.13.189.98]) by smtp.gmail.com with ESMTPSA id t67sm38996692qkf.34.2019.08.07.14.00.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 14:00:10 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B4C77123B2C; Wed, 7 Aug 2019 17:00:08 -0400 (-04) Date: Wed, 7 Aug 2019 17:00:08 -0400 From: Alvaro Herrera To: Tom Lane Cc: vignesh C , Andres Freund , Pg Hackers Subject: Re: Unused header file inclusion Message-ID: <20190807210008.GA18170@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <29998.1565029503@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-05, Tom Lane wrote: > Alvaro Herrera writes: > > Then there's the removal, which is in tuplesort.c because of > > INT_MAX as added by commit d26559dbf356 and still present ... > > One has to be especially wary of removing system-header inclusions; > the fact that they don't seem to be needed on your own machine doesn't > prove they aren't needed elsewhere. As far as I can see, this line was just carried over from tuplestore.c, but that file uses INT_MAX and this one doesn't use any of those macros as far as I can tell. I pushed this change and hereby consider this to be over. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services