| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | ZizhuanLiu X-MAN <44973863(at)qq(dot)com> |
| Cc: | jian he <jian(dot)universality(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, tgl <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Guo <rguo(at)postgresql(dot)org> |
| Subject: | Re: examine_variable ignored CollateExpr |
| Date: | 2026-11-28 17:37:29 |
| Message-ID: | CAGRkXqQtfyWVtY7c=L6kqgLKJk3pX4uA9aTv3ybKoRPhBoVP-Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Zizhuan,
Thanks for v7. I think in v7, a varchar column in WHERE is still missed.
CREATE COLLATION ci (provider = icu, locale = 'und-u-ks-level2',
deterministic = false);
CREATE TABLE v (a varchar COLLATE "C");
INSERT INTO v SELECT chr(65 + g % 52) FROM generate_series(1, 5200) g;
CREATE STATISTICS vs ON (a COLLATE ci) FROM v;
ANALYZE v;
EXPLAIN ANALYZE SELECT * FROM v WHERE a COLLATE ci = 'a';
GROUP BY a COLLATE ci uses the statistics. This query still estimates
100 rows for 200 actual, same as master.
Thanks,
Shihao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-11-28 17:51:51 | Re: Two fixes for parallel query cleanup: DSM detach order and a stray statement timeout |
| Previous Message | Stepan Neretin | 2026-11-28 17:33:28 | Re: [PATCH 0/2] Parallelizing the archiver |