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 1tGCzV-001XIX-D1 for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 08:01:41 +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 1tGCzT-00D3QO-Sy for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 08:01:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGCzS-00D3O5-FJ for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2024 08:01:39 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGCzL-0047Ih-JA for pgsql-hackers@postgresql.org; Wed, 27 Nov 2024 08:01:37 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 1168413802B9; Wed, 27 Nov 2024 03:01:30 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 27 Nov 2024 03:01:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1732694490; x=1732780890; bh=norIofSWfAZG52zNO55J06b+bEizpwSy 3hqruHyirNU=; b=Flc/Axzj7ZNNXLRc7VJ1opgjJgwvc3y713FUyN82chxxEh8S gAOCX+M7CxgIaN0gP6mlm4iE/cZvTnwJ1hRil0Y4YZx45vemGABr2bNd3uNNn7LE b7DVPoD1i3k+zV4q2vE1ank9lHiJiiwD9+/rEC+P9SCXtZmF8YoJR+ow7mZqXDDw tlFPj1SyGwpLdUxDXMXQUyVSAagsGqDUA2NaY9I2W8hLxogimFlLrmcvJsdzlROQ 2Yh7UKmc/c073Rpi/1/VyhGDHcxwb7PLnqmgBJeMV3zwlW2V4amfOEb1p1/HSrQ+ KZ138NWVA/MSyown9Q3jAbA7zZRd58fpBHa03Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732694490; x= 1732780890; bh=norIofSWfAZG52zNO55J06b+bEizpwSy3hqruHyirNU=; b=s T4HddNqdhKghjm8a1EBzQXRNka5mT5XuHw4pWvjVWNiTB1xzf8NPOKUtm7hNDmjC 0YdWK1quwZSeWF1e4J+PUExRVAmmktZCyja3UUYvzKTO1czTRWtDo8OERrcRku5Z uK7nsy5aTY5XVqbbrAoTZJrA5H8BehKKV7RTvA3zG9IshvzWzFtetbiOJhuyg5Sa XJjUFN+xU/gryFLeVXq0DFyy5yqvhl9BwW94Fs6uJLs+OoGXEFyk0RsO8GSnc2mz ikOiaGL0bZPhRRIgFWywyLEluyFqBxE1vfkBFw8zBpZK0F267SkBlkcmZsJMo7OP FcU5k1nSwungNI99GWEjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeekgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileeh teeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdho rhhgpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hjihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohep hhhlihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehjrggtohgsrdgthhgrmhhpih honhesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgr tghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepuggrnhhivghlse hmrghnihhtohhuqdhmrghilhdrohhrghdprhgtphhtthhopehpjhesihhllhhumhhinhgr thgvuggtohhmphhuthhinhhgrdgtohhm X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Nov 2024 03:01:28 -0500 (EST) Message-ID: Date: Wed, 27 Nov 2024 09:01:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Support LIKE with nondeterministic collations To: jian he Cc: Heikki Linnakangas , Jacob Champion , pgsql-hackers , Daniel Verite , Paul A Jungwirth References: <3104729e-1fbf-4368-ac21-1f670062de28@eisentraut.org> <0ca761b5-7b62-42a1-bffd-8bedefad48dd@eisentraut.org> <62156cde-b2c5-4375-b47a-9730aa8f7b5e@eisentraut.org> <07fdbb85-c530-48d0-adc0-7d43d7951e1b@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 20.11.24 08:29, jian he wrote: > in match_pattern_prefix maybe change > if (expr_coll && !get_collation_isdeterministic(expr_coll)) > return NIL; > to > if (OidIsValid(expr_coll) && !get_collation_isdeterministic(expr_coll)) > return NIL; I left it like it was, because this was existing code that I'm just moving around. > other than that, I didn't find any issue. I have committed it, thanks.