Skip site navigation (1) Skip section navigation (2)

BUG #6692: Potential Bug in equalfuncs.c

From: msrbugzilla(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6692: Potential Bug in equalfuncs.c
Date: 2012-06-13 18:03:39
Message-ID: E1Serut-0008IE-Tu@wrigleys.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6692
Logged by:          Ken Cheung
Email address:      msrbugzilla(at)gmail(dot)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;


Responses

pgsql-bugs by date

Next:From: msrbugzillaDate: 2012-06-13 18:08:37
Subject: BUG #6693: Potential Bug in rewriteManip.c
Previous:From: Bruce MomjianDate: 2012-06-13 16:34:48
Subject: Re: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group