mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Avoid generating relid lists with duplicate entries. Fixes bugs
reported by Stefanos Harhalakis 2/2/2003.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.75 2002/09/04 20:31:21 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.75.2.1 2003/02/07 00:02:43 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@@ -443,6 +443,7 @@ distribute_qual_to_rels(Query *root, Node *clause,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* this relid is for a true baserel */
|
/* this relid is for a true baserel */
|
||||||
|
if (!intMember(lfirsti(relid), newrelids))
|
||||||
newrelids = lappendi(newrelids, lfirsti(relid));
|
newrelids = lappendi(newrelids, lfirsti(relid));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user