Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc8d164

Browse files
committed
Fix mistaken Assert in adjust_appendrel_attr_needed, per Greg Stark.
1 parent017f2d2 commitbc8d164

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/backend/optimizer/prep/prepunion.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $PostgreSQL: pgsql/src/backend/optimizer/prep/prepunion.c,v 1.142 2007/06/11 01:16:23 tgl Exp $
25+
* $PostgreSQL: pgsql/src/backend/optimizer/prep/prepunion.c,v 1.143 2007/07/12 18:27:01 tgl Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -1288,8 +1288,6 @@ adjust_appendrel_attr_needed(RelOptInfo *oldrel, AppendRelInfo *appinfo,
12881288
ListCell*lm;
12891289

12901290
/* Create empty result array */
1291-
Assert(new_min_attr <=oldrel->min_attr);
1292-
Assert(new_max_attr >=oldrel->max_attr);
12931291
new_attr_needed= (Relids*)
12941292
palloc0((new_max_attr-new_min_attr+1)*sizeof(Relids));
12951293
/* Process user attributes, with appropriate attno mapping */
@@ -1312,6 +1310,7 @@ adjust_appendrel_attr_needed(RelOptInfo *oldrel, AppendRelInfo *appinfo,
13121310
parent_attr++;
13131311
}
13141312
/* Process system attributes, including whole-row references */
1313+
Assert(new_min_attr <=oldrel->min_attr);
13151314
for (parent_attr=oldrel->min_attr;parent_attr <=0;parent_attr++)
13161315
{
13171316
Relidsattrneeded;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp