Re: pgsql 10: hash indexes testing

From: AP <ap(at)zip(dot)com(dot)au>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgsql 10: hash indexes testing
Date: 2017-08-14 00:40:36
Message-ID: 20170814004036.w7j2nyis3hgy4k7q@zip.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 11, 2017 at 07:33:51AM +0530, Amit Kapila wrote:
> On Thu, Aug 10, 2017 at 4:11 PM, AP <ap(at)zip(dot)com(dot)au> wrote:
> > mdstash=# select * from pgstathashindex('link_datum_id_idx');
> > version | bucket_pages | overflow_pages | bitmap_pages | unused_pages | live_items | dead_items | free_percent
> > ---------+--------------+----------------+--------------+--------------+------------+------------+------------------
> > 4 | 12391325 | 5148912 | 158 | 191643 | 4560007478 | 0 | 1894.29056075982
> > (1 row)
>
> The free_percent calculation seems to be wrong. Can you please once
> try after recent commit 0b7ba3d6474b8f58e74dba548886df3250805cdf? I
> feel this should be fixed by that commit.

Sorry I couldn't get to help you debugging this myself. Work got annoying. :/

That said, I think that this is the first time that I've seen the value be
under 100:

mdstash=# select * from pgstathashindex('link_datum_id_idx');
version | bucket_pages | overflow_pages | bitmap_pages | unused_pages | live_items | dead_items | free_percent
---------+--------------+----------------+--------------+--------------+------------+------------+------------------
4 | 22957200 | 9272698 | 283 | 2208624 | 8448300552 | 0 | 39.8146658879555
(1 row)

Time: 2882974.635 ms (48:02.975)

The index is still functioning, too, with far more data than I've ever had
in the table in the past and well beyond the point where it would previously
die. Happy days. :)

AP

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-08-14 00:56:56 shared memory based stat collector (was: Sharing record typmods between backends)
Previous Message Tomas Vondra 2017-08-14 00:35:42 PATCH : Generational memory allocator (was PATCH: two slab-like memory allocators)