From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | vignesh C <vignesh21(at)gmail(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Unused header file inclusion |
Date: | 2019-08-05 18:06:56 |
Message-ID: | 20190805180656.GA11353@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 <limits.h> 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 <limits.h> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2019-08-05 18:11:46 | Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions |
Previous Message | Stephen Frost | 2019-08-05 17:34:39 | Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions |