From: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp |
Cc: | alvherre(at)alvh(dot)no-ip(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: reorganizing partitioning code |
Date: | 2018-02-16 05:07:25 |
Message-ID: | 20180216.140725.197414333.horiguchi.kyotaro@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello. I'd like to make a humble comment.
At Thu, 15 Feb 2018 19:31:47 +0900, Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> wrote in <8906c861-ea47-caee-c860-eff8d7e1dbc0(at)lab(dot)ntt(dot)co(dot)jp>
> Added to CF here: https://commitfest.postgresql.org/17/1520/
The reorganization adds/removes header files to/from .[ch]
files. That can easily leave useless includes and they're hardly
noticed. Following files touched in this patch have such useless
includes after this patch.
On the other hand, naive decision of this kind of cleanup can
lead to curruption. [1] So, I don't insisit that the all of the
following *should* amended, especially for rel.h.
[1] https://www.postgresql.org/message-id/6748.1518711125@sss.pgh.pa.us
==== nodeModifyTable.c:
> +#include "rewrite/rewriteManip.h"
rewriteManip.h is changed to include rel.h so rel.h is no longer
need to be included in the file. (It is also included in lmgr.h
so it was needless since before this patch, though.)
==== hba.c:
> +#include "catalog/objectaddress.h"
objectaddress.h includes acl.h so acl.h is no longer useful.
==== joinrels.c:
> +#include "utils/partcache.h"
partcache.h includes lsyscache.h.
==== prepunion.c:
> +#include "utils/partcache.h"
partcache.h includes lsyscache.h and partcache.h is included in
rel.h. So partcache.h and lsyscache.h are not required.
==== utility.c:
> +#include "utils/rel.h"
rel.h includes xlog.h (and xlog.h includes fd.h). The last two
are removable.
==== partcache.c:
parsenodes.h is included from some other files.
rel.h is included from rewriteManip.h.
partcache.h is included from rel.h
As the result, parsenodes.h, rel.h, partcache.h are not required.
==== relcache.c:
> +#include "utils/partcache.h"
lsyscache.h is included by partcache.h.
==== rel.h:
> +#include "utils/partcache.h"
partcache.h includes fmgr.h and relcache.h so the last two are
no longer useful.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2018-02-16 05:14:32 | Re: [HACKERS] advanced partition matching algorithm for partition-wise join |
Previous Message | Kyotaro HORIGUCHI | 2018-02-16 05:01:45 | Re: Let's remove DSM_INPL_NONE. |