Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 565F1E0C96A for ; Sat, 16 Jun 2012 13:32:00 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sfvum-00029S-6u for pgsql-bugs@postgresql.org; Sat, 16 Jun 2012 16:31:59 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q5GGVgIW020919; Sat, 16 Jun 2012 12:31:42 -0400 (EDT) From: Tom Lane To: msrbugzilla@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6692: Potential Bug in equalfuncs.c In-reply-to: References: Comments: In-reply-to msrbugzilla@gmail.com message dated "Wed, 13 Jun 2012 18:03:39 -0000" Date: Sat, 16 Jun 2012 12:31:42 -0400 Message-ID: <20918.1339864302@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/152 X-Sequence-Number: 33379 msrbugzilla@gmail.com writes: > 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. Well, COMPARE_LOCATION_FIELD() is a no-op anyway, but for documentation's sake it should be called in the comparison function for every node type that has a token location field (some do, some don't). So far as I can see, it is called where it should be. Did you observe a place where it is not, and if so where? regards, tom lane