Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 58309E0C96A for ; Sat, 16 Jun 2012 13:35:05 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sfvxo-00029o-Mb for pgsql-bugs@postgresql.org; Sat, 16 Jun 2012 16:35:04 +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 q5GGYpf5020978; Sat, 16 Jun 2012 12:34:51 -0400 (EDT) From: Tom Lane To: msrbugzilla@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6693: Potential Bug in rewriteManip.c In-reply-to: References: Comments: In-reply-to msrbugzilla@gmail.com message dated "Wed, 13 Jun 2012 18:08:37 -0000" Date: Sat, 16 Jun 2012 12:34:51 -0400 Message-ID: <20977.1339864491@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/153 X-Sequence-Number: 33380 msrbugzilla@gmail.com writes: > I observed a code clone in the following files. In these functions, > qry->resultRelation is computed differently but the comment above mentions > the same functionality. I wonder if this is a bug. Hope it helps. No, it isn't. You might gain some insight if you read the header comments for ChangeVarNodes and OffsetVarNodes. regards, tom lane