Re: [PATCH] Add planner support function to two-argument regexp_like()

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: solai v <solai(dot)cdac(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add planner support function to two-argument regexp_like()
Date: 2026-12-03 02:32:52
Message-ID: CAGRkXqQOEJnF0b3_eCq2q1tGVKHi4jbWNo3KX-c3avhLB5eNEQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Solai,

Thanks for testing both patches and checking the index condition and
the estimates.

I would leave out both tests. starts_with() and regexp_like() share the
same statistics check. A join clause uses two tables, so it has no
statistics on the call and behaves as before.

Thanks,
Shihao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shihao zhong 2026-12-03 02:36:17 Re: [PATCH] pageinspect: validate line pointers before using them
Previous Message Richard Guo 2026-12-03 02:27:17 Re: Wrong results with references to JOIN USING aliases