Re: BUG #3938: Row-wise comparison fails - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3938: Row-wise comparison fails
Date
Msg-id 7044.1202406947@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #3938: Row-wise comparison fails  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I wrote:
> Weird.  I suppose I broke this in the operator-family rewrite.
> Will look.

Sigh ... I fat-fingered some loop control logic ...

Index: indxpath.c
===================================================================
RCS file: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v
retrieving revision 1.226
diff -c -r1.226 indxpath.c
*** indxpath.c    1 Jan 2008 19:45:50 -0000    1.226
--- indxpath.c    7 Feb 2008 17:46:10 -0000
***************
*** 2619,2627 ****
                           op_strategy, lefttype, righttype, opfam);
              }
              new_ops = lappend_oid(new_ops, expr_op);
          }
-         lefttypes_cell = lnext(lefttypes_cell);
-         righttypes_cell = lnext(righttypes_cell);
      }

      /* If we have more than one matching col, create a subset rowcompare */
--- 2619,2627 ----
                           op_strategy, lefttype, righttype, opfam);
              }
              new_ops = lappend_oid(new_ops, expr_op);
+             lefttypes_cell = lnext(lefttypes_cell);
+             righttypes_cell = lnext(righttypes_cell);
          }
      }

      /* If we have more than one matching col, create a subset rowcompare */


            regards, tom lane

pgsql-bugs by date:

Previous
From: "Vladimir Kokovic"
Date:
Subject: BUG #3940: 'unrecognized node type: 1718580065'
Next
From: Tom Lane
Date:
Subject: Re: BUG #3940: 'unrecognized node type: 1718580065'