Skip to content

Commit 8021c77

Browse files
committed
Make amcanorder independent of amconsistentordering
Follow-up to commit af4002b: Make amconsistentordering not depend on amcanorder. Although they are related, they are independent properties. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/E1tngY6-0000UL-2n%40gemulon.postgresql.org
1 parent 661781f commit 8021c77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/cache/lsyscache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ equality_ops_are_compatible(Oid opno1, Oid opno2)
750750
* they belong to the same family.)
751751
*
752752
* (This is identical to equality_ops_are_compatible(), except that we check
753-
* amcanorder plus amconsistentordering instead of amconsistentequality.)
753+
* amconsistentordering instead of amconsistentequality.)
754754
*/
755755
bool
756756
comparison_ops_are_compatible(Oid opno1, Oid opno2)
@@ -782,7 +782,7 @@ comparison_ops_are_compatible(Oid opno1, Oid opno2)
782782
{
783783
IndexAmRoutine *amroutine = GetIndexAmRoutineByAmId(op_form->amopmethod, false);
784784

785-
if (amroutine->amcanorder && amroutine->amconsistentordering)
785+
if (amroutine->amconsistentordering)
786786
{
787787
result = true;
788788
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy