Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 19F8F1539070 for ; Wed, 13 Jun 2012 15:03:55 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Serv7-0003kn-EI for pgsql-bugs@postgresql.org; Wed, 13 Jun 2012 18:03:54 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Seruu-0003Ox-A8 for pgsql-bugs@postgresql.org; Wed, 13 Jun 2012 18:03:40 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Serut-0008IE-Tu for pgsql-bugs@postgresql.org; Wed, 13 Jun 2012 18:03:39 +0000 Date: Wed, 13 Jun 2012 18:03:39 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6692: Potential Bug in equalfuncs.c To: pgsql-bugs@postgresql.org From: msrbugzilla@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201206/133 X-Sequence-Number: 33360 The following bug has been logged on the website: Bug reference: 6692 Logged by: Ken Cheung Email address: msrbugzilla@gmail.com PostgreSQL version: 9.1.3 Operating system: Linux Description: = I observed a code clone in the following files. The function "COMPARE_LOCATION_FIELD" is called in some functions and missed in other functions. I wonder if this is a bug. Hope it helps. function : _equalA_ArrayExpr @ (file: "postgresql-9.1.3/src/backend/nodes/equalfuncs.c", line: 2118)~2121 COMPARE_NODE_FIELD(elements); COMPARE_LOCATION_FIELD(location); return true; function : _equalAlternativeSubPlan @ (file: "postgresql-9.1.3/src/backend/nodes/equalfuncs.c", line: 415)~417 COMPARE_NODE_FIELD(subplans); return true; function : _equalColumnRef @ (file: "postgresql-9.1.3/src/backend/nodes/equalfuncs.c", line: 2051)~2054 COMPARE_NODE_FIELD(fields); COMPARE_LOCATION_FIELD(location); return true; function : _equalDoStmt @ (file: "postgresql-9.1.3/src/backend/nodes/equalfuncs.c", line: 1306)~1308 COMPARE_NODE_FIELD(args); return true;