From: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp |
Cc: | pgsql-hackers(at)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us, robertmhaas(at)gmail(dot)com |
Subject: | Re: Get more from indices. |
Date: | 2013-12-10 05:25:09 |
Message-ID: | 20131210.142509.197538792.horiguchi.kyotaro@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thank you,
> > One is, you put the added code for getrelation_info() out of the block for
> > the condition (info->relam == BTREE_AM_OID) (though amcanorder would be
..
> By checking the following equation in build_index_paths(), the updated
> version of the patch guarantees that the result of an index scan is ordered:
>
> index_is_ordered = (index->sortopfamily != NULL);
Oops.. I forgot about it although many times I've seen...
You're right.
> > > Another is, you changed pathkeys expantion to be all-or-nothing decision.
> > > While this change should simplify the code slightly, it also dismisses
> > > the oppotunity for partially-extended pathkeys. Could you let me know
> > > the reason why you did so.
...
> > We might be able to partially-extend the original
> > pathkey list optimally in something significant, but that seems useless
> > complexity to me. So, I modified the patch to do the all-or-nothing
> > decision.
>
> Here I mean the optimality for use in merge joins.
Ok, I'll follow your advice. I agree on the point about merit vs
complexity.
I'm convinced of the validity of your patch. I'm satisfied with
it. Thank you.
regards,
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2013-12-10 05:29:29 | Re: stats for network traffic WIP |
Previous Message | Mark Kirkwood | 2013-12-10 05:19:14 | Re: ANALYZE sampling is too good |