aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-03-08 09:37:06 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-03-08 09:37:06 +0100
commit8021c77769e90cc804121d61a1bb7bcc4652d48b (patch)
treecd2c7621767dd7467e31e7a9409491d493efe1ce /src
parent661781f3a3ed37249cd468db27050ab3d4d662b7 (diff)
downloadpostgresql-8021c77769e90cc804121d61a1bb7bcc4652d48b.tar.gz
postgresql-8021c77769e90cc804121d61a1bb7bcc4652d48b.zip
Make amcanorder independent of amconsistentordering
Follow-up to commit af4002b381d: 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
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/cache/lsyscache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c
index a712a432938..80c5a3fcfb7 100644
--- a/src/backend/utils/cache/lsyscache.c
+++ b/src/backend/utils/cache/lsyscache.c
@@ -750,7 +750,7 @@ equality_ops_are_compatible(Oid opno1, Oid opno2)
* they belong to the same family.)
*
* (This is identical to equality_ops_are_compatible(), except that we check
- * amcanorder plus amconsistentordering instead of amconsistentequality.)
+ * amconsistentordering instead of amconsistentequality.)
*/
bool
comparison_ops_are_compatible(Oid opno1, Oid opno2)
@@ -782,7 +782,7 @@ comparison_ops_are_compatible(Oid opno1, Oid opno2)
{
IndexAmRoutine *amroutine = GetIndexAmRoutineByAmId(op_form->amopmethod, false);
- if (amroutine->amcanorder && amroutine->amconsistentordering)
+ if (amroutine->amconsistentordering)
{
result = true;
break;