Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbyru-002x6i-8l for pgsql-committers@arkaria.postgresql.org; Thu, 08 Aug 2024 08:51:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sbyrs-00CigP-Qi for pgsql-committers@arkaria.postgresql.org; Thu, 08 Aug 2024 08:51:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbyrs-00CigH-Ja for pgsql-committers@lists.postgresql.org; Thu, 08 Aug 2024 08:51:32 +0000 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbyrq-003lpC-A7 for pgsql-committers@lists.postgresql.org; Thu, 08 Aug 2024 08:51:32 +0000 Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-e0e76380433so595849276.2 for ; Thu, 08 Aug 2024 01:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723107089; x=1723711889; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cxdzPUiV031iEVRV6xeii/Bwg6UkGsTjERUyvr05GBU=; b=QSrGdU/OmpjelRplc+bv+WZfoSr+O4cbjbctqVv0l4xNEgOwLAlqp5mlWiwswOSDNw O1ZTvj9xGydk3+5F+77dYnhN5Vkn/DaJVqrfvbW2oTj0yNp1WbWz9bASp3IbuQj1w7Ss 7hMNTXDINUapcgj0XvIaHcBA1IAfKanTUwoEJAISrz7eCDQQsyzeESa0pgm/I2sPLgZQ 7ebK5QE5vRD3+81HDieTYOaFk7mx1E35YJDmH73XWobk5ePHzwMAmixWda8EtBGmGRLP 1iOGoNkVds/Wk3L0Q+TlHkpvZAtNNf6ElQo0a/sA4Rx4Nawu4+Bp+VT95rqzyj/2Vg10 YFDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723107089; x=1723711889; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cxdzPUiV031iEVRV6xeii/Bwg6UkGsTjERUyvr05GBU=; b=DV1DdTRISvkFPEZEnkjLMzgC864kKGMl8QmqLXNtNfYNzbSUdB4fHGsF9q0htNUWMr Gxvr4IEABnN9c5HiYoyDGwJfwRMwXrQ5WAFfW2t0GlKMmCDumyrgM0uo7lNv2A7cYd3J Y9VSJcMeSbS4XPt9iOsD703WcusZXKE1zYrRDIH3OXOKFtUBgtt9vGOG/nze1Iafk0Hv IL8SnZK/aEP8XBxCGsWe/tF73OFJd2MzvApprSa4MNH5sYF2Fw9IeJtJ05j2T+0lkfAs WJKKCnbdLL5dDdtXMIAhKelSYUg3h1bdyBLw2cqrPZxts1dq825Wq6KtunO44YqPBaMy 0qPA== X-Forwarded-Encrypted: i=1; AJvYcCX3I30wn2jEIKntzlg2RJ7bXhj8s55/1M8Z1Mb/+fvSNR1X3Y2BdVEZJtMoamTi0RaRGDJlwBJikiSppnpxb/QvCXpvcxBdPpzxhY1xTgLJbNHaSOXE X-Gm-Message-State: AOJu0YzN0gyLv1x8A8mANdyr4FSqHGJhYREFkbzYgPZFYzVCS5uhTDCt O0EU44EKl5oO5z+E0QhjFTO8snn4hxYogSBsqL73GO+MGldGN35zNEjF5ulNNouN/saJOSJ25iX NkSQhsf8xxZO/WJ5Z6ie6CoUQM3K5X2J24FS/8A== X-Google-Smtp-Source: AGHT+IFGXI2pzzF4ofd6m94QzYu5d/U9SvIucbAhA7nSE2PVkreM6UsoHMuyRD5ZFIAHRXhvzhP4qnvndUlC6pypFCE= X-Received: by 2002:a05:6902:98d:b0:e08:5554:b2cd with SMTP id 3f1490d57ef6-e0e9da72bbdmr1272842276.4.1723107088587; Thu, 08 Aug 2024 01:51:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Thu, 8 Aug 2024 11:51:17 +0300 Message-ID: Subject: Re: pgsql: Introduce hash_search_with_hash_value() function To: Pavel Stehule Cc: Alexander Korotkov , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 8, 2024 at 7:45=E2=80=AFAM Pavel Stehule wrote: > st 7. 8. 2024 v 22:25 odes=C3=ADlatel Alexander Korotkov napsal: >> >> On Wed, Aug 7, 2024 at 1:34=E2=80=AFPM Pavel Stehule wrote: >> > st 7. 8. 2024 v 12:22 odes=C3=ADlatel Alexander Korotkov 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