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

Commitf538329

Browse files
committed
Fix build_minmax_path() to cope if an IS NULL clause turns up in the
indexable-clauses list for a btree index. Formerly it just Asserted thatall such clauses were opclauses, but that's no longer true in 8.3.Per bug #3796 from Matthias Schoeneich.
1 parent50eed10 commitf538329

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/optimizer/plan/planagg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planagg.c,v 1.34 2007/11/15 21:14:36 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planagg.c,v 1.35 2007/12/03 22:37:17 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -368,7 +368,9 @@ build_minmax_path(PlannerInfo *root, RelOptInfo *rel, MinMaxAggInfo *info)
368368
RestrictInfo*rinfo= (RestrictInfo*)lfirst(ll);
369369
intstrategy;
370370

371-
Assert(is_opclause(rinfo->clause));
371+
/* Could be an IS_NULL test, if so ignore */
372+
if (!is_opclause(rinfo->clause))
373+
continue;
372374
strategy=
373375
get_op_opfamily_strategy(((OpExpr*)rinfo->clause)->opno,
374376
index->opfamily[prevcol]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp