Index scan for multicolumn comparison - non-uniform index column ordering
问题 This question is closely related to Enforcing index scan for multicolumn comparison The solution there is perfect, but seems to works only if all index columns have same ordering. This question is different because column b is desc here, and this fact stops from using row-syntax to solve the same problem. This is why I'm looking for another solution. Suppose index is built for 3 columns (a asc, b DESC, c asc) , I want Postgres to: find key [a=10, b=20, c=30] in that B-tree, scan next 10