aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-02-07 17:53:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-02-07 17:53:53 +0000
commit09bb6f6ed0265f236e457718625a1730ab5f8ff3 (patch)
tree026112ac0c40b43a007e807ec9dd44b25a2d7275 /src
parentb7fe5f70d32fcc56c425d5d35fa1f7c27c99ab37 (diff)
downloadpostgresql-09bb6f6ed0265f236e457718625a1730ab5f8ff3.tar.gz
postgresql-09bb6f6ed0265f236e457718625a1730ab5f8ff3.zip
Fix silly mistake in expand_indexqual_rowcompare --- in converting a forboth()
into an iteration over three parallel lists, I had accidentally put the lnext steps outside the loop. Sigh. Per bug #3938.
Diffstat (limited to 'src')
-rw-r--r--src/backend/optimizer/path/indxpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index b26fcc962e5..8a2e808cc30 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/optimizer/path/indxpath.c,v 1.226 2008/01/01 19:45:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/optimizer/path/indxpath.c,v 1.227 2008/02/07 17:53:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2619,9 +2619,9 @@ expand_indexqual_rowcompare(RestrictInfo *rinfo,
op_strategy, lefttype, righttype, opfam);
}
new_ops = lappend_oid(new_ops, expr_op);
+ lefttypes_cell = lnext(lefttypes_cell);
+ righttypes_cell = lnext(righttypes_cell);
}
- lefttypes_cell = lnext(lefttypes_cell);
- righttypes_cell = lnext(righttypes_cell);
}
/* If we have more than one matching col, create a subset rowcompare */