Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e80ac8e

Browse files
author
Artur Zakirov
committed
Do not show warning for sr_plan if table sr_plans doesn't exist
1 parent 8fed952 commit e80ac8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/sr_plan/sr_plan.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ PlannedStmt *sr_planner(Query *parse,
8585
/* First check existance of "sr_plans" table */
8686
sr_plans_oid = RangeVarGetRelid(sr_plans_table_rv, heap_lock, true);
8787
if (!OidIsValid(sr_plans_oid))
88-
{
89-
elog(WARNING, "Not found sr_plans table");
88+
/* Just call standard_planner() if table doesn't exist. */
9089
return standard_planner(parse, cursorOptions, boundParams);
91-
}
9290

9391
/* Table "sr_plans" exists */
9492
sr_plans_heap = heap_open(sr_plans_oid, NoLock);

0 commit comments

Comments
 (0)