Skip to content

Commit fd32299

Browse files
authored
Remove NOTICE level elog statements (#470)
1 parent 5d4d3f9 commit fd32299

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

fdw/fdw.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ static int deparseLimit(PlannerInfo *root)
186186
bms_num_members(root->all_baserels) != 1)
187187
return -1;
188188

189-
if (root->parse->sortClause != NULL) {
190-
elog(NOTICE, "deparseLimit - there are sortClause");
191-
}
192-
193-
194189
/* only push down constant LIMITs that are not NULL */
195190
if (root->parse->limitCount != NULL && IsA(root->parse->limitCount, Const))
196191
{
@@ -247,16 +242,13 @@ static void fdwGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid forei
247242
{
248243
List *deparsed;
249244

250-
elog(NOTICE, "fdwGetForeignPaths - there are query_pathkeys");
251245
deparsed = deparse_sortgroup(root, foreigntableid, baserel);
252246
if (deparsed)
253247
{
254248
/* Update the sort_*_pathkeys lists if needed */
255249
fdw_private->canPushdownAllSortFields = computeDeparsedSortGroup(deparsed, planstate, &apply_pathkeys, &fdw_private->deparsed_pathkeys);
256-
elog(NOTICE, "computeDeparsedSortGroup returned canPushdownAllSortFields: %d", fdw_private->canPushdownAllSortFields);
257250
} else {
258251
/* deparse_sortgroup failed returns empty list if no pathkeys for the PlannerInfo */
259-
elog(NOTICE, "fdwGetForeignPaths - deparse_sortgroup returned nothing - no sort groupos to pushdown - mark canPushdownAllSortFields as true");
260252
fdw_private->canPushdownAllSortFields = true;
261253
}
262254
}
@@ -325,7 +317,6 @@ static ForeignScan *fdwGetForeignPlan(
325317
planstate->pathkeys = pathdata->deparsed_pathkeys;
326318
}
327319
else {
328-
elog(NOTICE, "fdwGetForeignPlan - best_path->fdw_private is NULL. Defaulting to setting canPushdownAllSortFields to true");
329320
planstate->canPushdownAllSortFields = true;
330321
planstate->pathkeys = NULL;
331322
}

fdw/query.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,6 @@ bool computeDeparsedSortGroup(List *deparsed, FdwPlanState *planstate,
418418
int numSortableFields = list_length(deparsed);
419419
bool canPushdownAllSortFields = numSortFields == numSortableFields;
420420

421-
elog(NOTICE, "computeDeparsedSortGroup: numSortFields %d, numSortableFields %d, canPushdownAllSortFields %d", numSortFields, numSortableFields, canPushdownAllSortFields);
422-
423421
/* Don't go further if FDW can't enforce any sort */
424422
if (sortable_fields == NIL)
425423
return false;

0 commit comments

Comments
 (0)