From: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> |
---|---|
To: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> |
Cc: | kgrittn(at)ymail(dot)com, hlinnakangas(at)vmware(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Reduce pinning in btree indexes |
Date: | 2015-02-27 05:56:18 |
Message-ID: | 874mq77vuu.fsf@news-spur.riddles.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>>>>> "Kyotaro" == Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> writes:
Kyotaro> ammarkpos/amrestrpos are called in merge joins. By the steps
Kyotaro> shown below, I had 1M times of markpos and no restorepos for
Kyotaro> 1M result rows, and had 500k times of markpos and the same
Kyotaro> number of times of restorepos for 2M rows result by a bit
Kyotaro> different configuration. I suppose we can say that they are
Kyotaro> the worst case considering maskpos/restrpos. The call counts
Kyotaro> can be taken using the attached patch.
You might want to try running the same test, but after patching
ExecSupportsMarkRestore to return false for index scans. This will cause
the planner to insert a Materialize node to handle the mark/restore.
This way, you can get an idea of how much gain (if any) the direct
support of mark/restore in the scan is actually providing.
--
Andrew (irc:RhodiumToad)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2015-02-27 06:23:26 | Re: Performance improvement for joins where outer side is unique |
Previous Message | Kyotaro HORIGUCHI | 2015-02-27 05:30:47 | Re: Reduce pinning in btree indexes |