1
0
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:
Tom Lane
2003-02-07 00:02:43 +00:00
parent 2425ab3ece
commit c228ef1587

View File

@@ -8,7 +8,7 @@
*
*
* 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
{
/* this relid is for a true baserel */
if (!intMember(lfirsti(relid), newrelids))
newrelids = lappendi(newrelids, lfirsti(relid));
}
}