Re: [HACKERS] GSoC 2017: weekly progress reports (week 4) and patch for hash index

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Shubham Barai <shubhambaraiss(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Andrew Borodin <amborodin86(at)gmail(dot)com>, Kevin Grittner <kgrittn(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: [HACKERS] GSoC 2017: weekly progress reports (week 4) and patch for hash index
Date: 2018-04-07 14:17:06
Message-ID: ed380e2d-3d2b-8797-0813-01240e604859@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks to everyone, pushed

Alexander Korotkov wrote:
> On Fri, Mar 2, 2018 at 6:57 AM, Thomas Munro
> <thomas(dot)munro(at)enterprisedb(dot)com <mailto:thomas(dot)munro(at)enterprisedb(dot)com>>
> wrote:
>
> My thought experiments about pseudo-pages and avoiding the split stuff
> were not intended to get the patch kicked out.  I thought for a while
> that hash indexes were a special case and could benefit from
> dispensing with those trickier problems.  Upon further reflection, for
> interesting size hash indexes pure hash value predicate tags wouldn't
> be much better.  Furthermore, if we do decide we want to use using x %
> max_predicate_locks_per_relation to avoid having to escalate to
> relation predicate locks at the cost of slightly higher collision rate
> then we should consider that for the whole system (including heap page
> predicate locking), not just hash indexes.  Please consider those
> ideas parked for now.
>
>
> OK.  While our potential pseudo-pages are identified as
> "hash_value % some_constant_modulus", real bucket pages are very roughly
> identified as "hash_value % number_of_index_pages".  So, page number is
> adoptive to index size, despite it costs us handling page split. In the
> same way,
> locking in other index access methods is adoptive to an index size, so
> that should be considered as useful feature which should be present in
> hash index
> as well.
>
> ------
> Alexander Korotkov
> Postgres Professional:http://www.postgrespro.com
> <http://www.postgrespro.com/>
> The Russian Postgres Company

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-04-07 14:20:59 Re: WIP: a way forward on bootstrap data
Previous Message Bruce Momjian 2018-04-07 14:12:01 Re: [HACKERS] PATCH: multivariate histograms and MCV lists