pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: msrbugzilla@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6692: Potential Bug in equalfuncs.c
Date: Wed, 13 Jun 2012 18:03:39 +0000
Message-ID: <E1Serut-0008IE-Tu@wrigleys.postgresql.org> (raw)

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;




view thread (2+ messages)  latest in thread

Message-ID: <E1Serut-0008IE-Tu@wrigleys.postgresql.org>
Permalink:  ../E1Serut-0008IE-Tu@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Serut-0008IE-Tu@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: msrbugzilla@gmail.com
  Subject: Re: BUG #6692: Potential Bug in equalfuncs.c
  In-Reply-To: <E1Serut-0008IE-Tu@wrigleys.postgresql.org>
  References: <E1Serut-0008IE-Tu@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox