Re: Multicolumn index scan efficiency

2025-11-09 Thread Peter Geoghegan
On Sun, Nov 9, 2025 at 9:44 PM Vitalii Tymchyshyn wrote: > I am wondering about 2 things: > 1) Does anyone know which specific change / version made it fast? > 2) What was the proper way to do a range index scan like WHERE (a,b,c) > between (x1,y1,z1) and (x2,y2,z2) before the improvement. > Note

Multicolumn index scan efficiency

2025-11-09 Thread Vitalii Tymchyshyn
Hi. Since Friday I have been trying to diagnose the slowness of scanning the multicolumn index in Postgres. I figured out that multicolumns conditions like (a,b,c) > (x,y,z) with a,b and c being part of primary index work slow in postgresql 9.6 (original version in prod, I know it's old). I though

Re: Multicolumn index scan efficiency

2025-11-09 Thread Vitalii Tymchyshyn
Thank you so much for both clarifying and fixing it! In our case (FYI, this is from http://github.com/cdapio/cdap) a lot of users have just a single namespace, so it effectively means scanning till the end of the index. We'll fix https://github.com/cdapio/cdap/blob/develop/cdap-data-fabric/src/main