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 1srk6G-004ArE-HU for pgsql-committers@arkaria.postgresql.org; Fri, 20 Sep 2024 20:19:33 +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 1srk6E-00CIFI-CD for pgsql-committers@arkaria.postgresql.org; Fri, 20 Sep 2024 20:19:31 +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 1srk6E-00CIF8-4m for pgsql-committers@lists.postgresql.org; Fri, 20 Sep 2024 20:19:31 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1srk6B-000F0n-2B for pgsql-committers@lists.postgresql.org; Fri, 20 Sep 2024 20:19:30 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a8d64b27c45so393209666b.3 for ; Fri, 20 Sep 2024 13:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1726863567; x=1727468367; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=I3WNVCNZwJKpUTL8B8nkJqKOs7Re1/j00A+GlUO7yQc=; b=vjbUcZjDSkAZ3CluiFS7a+eCDeUEI7NgSozmJb08rZJNHDqXEBQHODxLoHB+xE009F 8juPsD0rmphZqLsE4RLAyR4Oq6T4Ktqc0DOYqbJEpk9EfvyokZZTIvEAVm2vZT+75Sr3 WsNPP087dz/twsUPunFMymgP+jtGTQE2ZpHQm5Msl0Pmzxv1xVDpJbwcj6nc1dEFOV32 mZ+bOC5riCElU9Djqec8Tj5W4dOB7TaWj3HWiwDHW94g/4HUwVwdj/IzVw3xnzQ6a75X hY4joFmuKAPohtzyM+/hbitHETj/Wy1HmVpVjdW7t2iwqjhezcnu8WZQQwav+bqOJ7Qs seAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726863567; x=1727468367; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=I3WNVCNZwJKpUTL8B8nkJqKOs7Re1/j00A+GlUO7yQc=; b=UDUsv+4lUf7RYEHrF8tV0Bq2yrrQgng0dpgrj/LCghYHo4EpkFbzKNWk2+taMgwwD0 hj6ah8qbmVnWsj7AMDsjRKZufty9iITYKWkkcpo83d7lm0SgfFkbsu7gd3QhnwAPh/iV 4899EqeraO7Lwx4KtLapf3EZd54sP6DQkKWDocxoGV08rnQ0r4e8umnpqo+bIMvqc/rJ mQiRtxQSKNJry77A9Cv6GZbRGQopI8budLmBddmBQ4dImf/qvbKdX0rbPrJ72vOrDtlB CY1F9BFY1VF6N11rlVGeWA4dHApD5kruBX4BonV766ATSpyBfJmYnZS2yxE+0OszMCTO Cn2Q== X-Forwarded-Encrypted: i=1; AJvYcCWnb2Q67pKlG5kcFCquY7scRT35qpvXl+8j03QmgHQazIaFtnvAejtAe0ccSXomdXJj93OLncn2yihF6bF5ILZN@lists.postgresql.org X-Gm-Message-State: AOJu0YwcdwMW2OxH24lHIu6piKRCRuK3K1Lau3R0iCS9sZFD6UVbBOo3 386F3oHfJHFyG6bRCYq5Vl5DCH0un1XYFQ2HcdhfU9PjzsK7vcimC+AiyTuGTdQ= X-Google-Smtp-Source: AGHT+IFO3PxgzfdoNSiSvRQXmnbsOmh60o3uWEbah0ndQzjxhON3ChzpCdM2IbQvB8W+3BCC69+H0w== X-Received: by 2002:a17:907:7ea9:b0:a8a:7027:c015 with SMTP id a640c23a62f3a-a90d5153cefmr349610766b.56.1726863567336; Fri, 20 Sep 2024 13:19:27 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:260:b59a:3b05:b5a9:4ef:76b7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9061331b7csm884186066b.225.2024.09.20.13.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 13:19:27 -0700 (PDT) Message-ID: Subject: Re: pgsql: Handle equality operator in contrib/pg_trgm From: Laurenz Albe To: Alexander Korotkov , pgsql-committers@lists.postgresql.org Date: Fri, 20 Sep 2024 22:19:26 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2020-11-15 at 05:53 +0000, Alexander Korotkov wrote: > Handle equality operator in contrib/pg_trgm >=20 > Obviously, in order to equality operator be satisfiable, target string mu= st > contain all the trigrams of the search string.=C2=A0 On this base, we imp= lement > equality operator in GiST/GIN indexes with recheck. >=20 > Discussion: https://postgr.es/m/CAOBaU_YWwtT7tdggtROacjdOdeYHCz-tmSwuC-j-= TOG-g97J0w%40mail.gmail.com > Author: Julien Rouhaud > Reviewed-by: Tom Lane, Alexander Korotkov, Georgios Kokolatos, Erik Rijke= rs >=20 > Branch > ------ > master >=20 > Details > ------- > https://git.postgresql.org/pg/commitdiff/935f6666502250abde8615bc7805a6e5= aa05a066 This causes bad query results with non-deterministic collations, see https://postgr.es/m/8ef4899c4acfebca45cc6c042a6dc611d25ffab1.camel@cybertec= .at Yours, Laurenz Albe