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 1huhO2-0004sw-G0 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 18:07:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huhO1-0003bz-6M for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 18:07:09 +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 1huhO0-0003br-Q0 for pgsql-hackers@lists.postgresql.org; Mon, 05 Aug 2019 18:07:08 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huhNx-0000Mk-AK for pgsql-hackers@postgresql.org; Mon, 05 Aug 2019 18:07:08 +0000 Received: by mail-qk1-x742.google.com with SMTP id m14so35105272qka.10 for ; Mon, 05 Aug 2019 11:07:04 -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=AE84HKfqeE5tPfvMPMy8bJtUpsN83NIXjuho9lOCw0E=; b=c/gKXoCv+lXHOBP4qNWZMTz/CbkVh3/IQSogM3p/A4mh+xqLEA7XOL+P5e9Rc/LLfu cPxHMrJmuclw3Vd7vLAdkAG7q3P3QuDbwt1OgZYZhrcnfO6/Zrv7uHoD8G3T5t7dFaQS o6Tw8cL02YMDtaGN+ZE5KCGtRXlaZyUMw8yqzPeQt2ddEjbTT/4FnZjn/bTsy8uugIfx /QxcjtlghTTNMRs50HpE2mLN74RjFelVm/N7YYpGwwiHCjq19Z+uGaxML6g2WwDD9MqX lmlpmo2Dv3Dj5T8OQgDdvmZ9ByoPc3XhGozsV1+VKc6sImQdAi5MVz/hBv41cLadS4II vRwQ== 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=AE84HKfqeE5tPfvMPMy8bJtUpsN83NIXjuho9lOCw0E=; b=lrd741GfI2AODIMGl7cD/bvFqCLhWOterDqE0XMX7euXH6Hin8i7qPHsP7VW2TXrK1 W54jBu3lzJ6O8v3ZABlE5kTbJ/AsEVzXUq7AHJ4dixq6PQ8GSUn9SfjYIPf2bTSHEvNv hZ2f8B61vXaeisvdk9NGWGUa8LePpZmJMcPTQqTs+xZPIWHzfMilJ3TRkrly4dn3S3xh EXXkc/h4cYu5VTtt68IPRuIQ7n55aoRMZg98FM+EQTX5aRpukT+8scaEFgtAJ/Yi3pip wfPRwXs2l8l7BfWx7YSgERK3BNQcKbOTaHKqiziRrMI0h8VZPBTln//Tg3eb7y8ubEm6 GnsQ== X-Gm-Message-State: APjAAAXqi30dWl5BEgQPwaoxNLxBerhFIBVryFBmIDgJWTROkfw/GfLi cCTm91CYJO/ndeNeRhpkuqLnHg== X-Google-Smtp-Source: APXvYqxXg3yGwhULQw5+wV2q3/4NmfhgGQp7wEaTX6tC+QDmhqEMwMBv8H6XOyojG8pJy0jxYrWsnw== X-Received: by 2002:a05:620a:5a4:: with SMTP id q4mr56987528qkq.64.1565028423516; Mon, 05 Aug 2019 11:07:03 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.227.202]) by smtp.gmail.com with ESMTPSA id m5sm35197848qke.25.2019.08.05.11.07.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 11:07:03 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id DEF55123AC0; Mon, 5 Aug 2019 14:06:56 -0400 (-04) Date: Mon, 5 Aug 2019 14:06:56 -0400 From: Alvaro Herrera To: vignesh C Cc: Andres Freund , Pg Hackers Subject: Re: Unused header file inclusion Message-ID: <20190805180656.GA11353@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-04, vignesh C wrote: > Made the fixes based on your comments, updated patch has the changes > for the same. Well, you fixed the two things that seem to me quoted as examples of problems, but you didn't fix other occurrences of the same issues elsewhere. For example, you remove lwlock.h from dsa.c but there are structs there that have LWLocks as members. That's just the first hunk of the patch; didn't look at the others but it wouldn't surprise that they have similar issues. I suggest this patch should be rejected. Then there's the removal, which is in tuplesort.c because of INT_MAX as added by commit d26559dbf356 and still present ... FWIW sharedtuplestore.c, a very young file, also includes but that appears to be copy-paste of includes from some other file (and also in an inappropriate place), so I have no objections to obliterating that one. But other than that one line, this patch needs more "adult supervision". -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services