Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)