pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <aekorotkov@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Introduce hash_search_with_hash_value() function
Date: Thu, 8 Aug 2024 11:51:17 +0300
Message-ID: <CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com> (raw)
In-Reply-To: <CAFj8pRBka02SrWnu0iTCTCOfBUco_A4uLNjuZj3UH0CkVJMF6Q@mail.gmail.com>
References: <E1sbXy7-00340L-0P@gemulon.postgresql.org>
	<CAFj8pRBN65zcR62uOy+wbM61yVJ0P7G-m6tgZZc3NVQRsCz5nw@mail.gmail.com>
	<CAPpHfdtzGJqB=qAvPqgJZZR7vyrgaAuV8dNbd1kX2VKOqnEtdQ@mail.gmail.com>
	<CAFj8pRAXmv6eyYx=E_BTfyK=O_+yOF8sXB=0bn9eOBt90EgWRA@mail.gmail.com>
	<CAPpHfdvJf0pFJuvx4JPmdGjLOwxg4_9Q1up2JUYkuyar9GZu7g@mail.gmail.com>
	<CAFj8pRBKTdgr-aULHjZcjqnqPLxU8jj9CagcfWxrZyFrOv2rtQ@mail.gmail.com>
	<CAPpHfdtSh9JrxJgYyoivKPrPUi=gqGbfOqSr=V5=9otkj2Fe4w@mail.gmail.com>
	<CAFj8pRBka02SrWnu0iTCTCOfBUco_A4uLNjuZj3UH0CkVJMF6Q@mail.gmail.com>

On Thu, Aug 8, 2024 at 7:45 AM Pavel Stehule <pavel.stehule@gmail.com> wrote:
> st 7. 8. 2024 v 22:25 odesílatel Alexander Korotkov <aekorotkov@gmail.com> napsal:
>>
>> On Wed, Aug 7, 2024 at 1:34 PM Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> > st 7. 8. 2024 v 12:22 odesílatel Alexander Korotkov <aekorotkov@gmail.com> napsal:
>> >> Thank you.
>> >> Please see 40064a8ee1 takes special efforts to match HTAB hash
>> >> function to syscache hash function.  By default, their hash values
>> >> don't match and you can't simply use syscache hash value to search
>> >> HTAB.  This probably should be mentioned in the header comment of
>> >> hash_seq_init_with_hash_value().
>> >
>> >
>> > yes, enhancing doc should be great + maybe assert
>>
>> Please check the patch, which adds a caveat to the function header
>> comment.  I don't particularly like an assert here, because there
>> could be use-cases besides syscache callbacks, which could legally use
>> default hash function.
>
>
> looks well

Thank you, pushed.

------
Regards,
Alexander Korotkov
Supabase





view thread (19+ messages)  latest in thread

Message-ID: <CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com>
Permalink:  ../CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: aekorotkov@gmail.com, pavel.stehule@gmail.com, akorotkov@postgresql.org
  Subject: Re: pgsql: Introduce hash_search_with_hash_value() function
  In-Reply-To: <CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com>
  References: <E1sbXy7-00340L-0P@gemulon.postgresql.org> <CAFj8pRBN65zcR62uOy+wbM61yVJ0P7G-m6tgZZc3NVQRsCz5nw@mail.gmail.com> <CAPpHfdtzGJqB=qAvPqgJZZR7vyrgaAuV8dNbd1kX2VKOqnEtdQ@mail.gmail.com> <CAFj8pRAXmv6eyYx=E_BTfyK=O_+yOF8sXB=0bn9eOBt90EgWRA@mail.gmail.com> <CAPpHfdvJf0pFJuvx4JPmdGjLOwxg4_9Q1up2JUYkuyar9GZu7g@mail.gmail.com> <CAFj8pRBKTdgr-aULHjZcjqnqPLxU8jj9CagcfWxrZyFrOv2rtQ@mail.gmail.com> <CAPpHfdtSh9JrxJgYyoivKPrPUi=gqGbfOqSr=V5=9otkj2Fe4w@mail.gmail.com> <CAFj8pRBka02SrWnu0iTCTCOfBUco_A4uLNjuZj3UH0CkVJMF6Q@mail.gmail.com> <CAPpHfdvqgB6YEgExEND88notzb_bf9kq8bfzozo+fUohhWCouQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox