Skip to content

Commit baed6b4

Browse files
committed
Fix: format elog print
1 parent 6d435c6 commit baed6b4

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/backend/commands/matview.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ ivm_immediate_before(PG_FUNCTION_ARGS)
15131513

15141514
entry->before_trig_count++;
15151515

1516-
elogif(Debug_print_ivm, INFO, "trigger ivm_immediate_before ref%d, mvid:%d", entry->before_trig_count, matviewOid);
1516+
elogif(Debug_print_ivm, INFO, "IVM ivm_immediate_before ref %d, mvid:%d", entry->before_trig_count, matviewOid);
15171517

15181518
if (Gp_role == GP_ROLE_DISPATCH && !TRIGGER_FIRED_BY_TRUNCATE(trigdata->tg_event))
15191519
{
@@ -1583,7 +1583,7 @@ ivm_immediate_maintenance(PG_FUNCTION_ARGS)
15831583
Assert (found && entry != NULL);
15841584
entry->after_trig_count++;
15851585

1586-
elogif(Debug_print_ivm, INFO, "trigger ivm_immediate_maintenance ref%d, mvid:%d", entry->after_trig_count, matviewOid);
1586+
elogif(Debug_print_ivm, INFO, "IVM ivm_immediate_maintenance ref %d, mvid:%d", entry->after_trig_count, matviewOid);
15871587

15881588
oldowner = CurrentResourceOwner;
15891589
CurrentResourceOwner = entry->resowner;
@@ -2116,7 +2116,7 @@ ivm_visible_in_prestate(PG_FUNCTION_ARGS)
21162116

21172117
ExecClearTuple(table->slot);
21182118

2119-
elogif(Debug_print_ivm, INFO, "tableoid: %d, ctid: %s, visible %d.", tableoid, ItemPointerToString(itemPtr), result);
2119+
elogif(Debug_print_ivm, INFO, "IVM tableoid: %d, ctid: %s, visible %d.", tableoid, ItemPointerToString(itemPtr), result);
21202120
PG_RETURN_BOOL(result);
21212121
}
21222122

@@ -2539,7 +2539,7 @@ apply_delta(char *old_enr, char *new_enr, MV_TriggerTable *table, Oid matviewOid
25392539
if (rc != SPI_OK_REL_REGISTER)
25402540
elog(ERROR, "SPI_register failed");
25412541

2542-
elogif(Debug_print_ivm, INFO, "apply old relation: %s, command_count: %d", enr->md.name, gp_command_count);
2542+
elogif(Debug_print_ivm, INFO, "IVM apply old enr %s, command_count: %d", enr->md.name, gp_command_count);
25432543
if (use_count)
25442544
/* apply old delta and get rows to be recalculated */
25452545
apply_old_delta_with_count(matviewname, enr->md.name,
@@ -2566,7 +2566,7 @@ apply_delta(char *old_enr, char *new_enr, MV_TriggerTable *table, Oid matviewOid
25662566
if (rc != SPI_OK_REL_REGISTER)
25672567
elog(ERROR, "SPI_register failed");
25682568

2569-
elogif(Debug_print_ivm, INFO, "apply new relation: %s, command_count: %d", enr->md.name, gp_command_count);
2569+
elogif(Debug_print_ivm, INFO, "IVM apply new enr %s, command_count: %d", enr->md.name, gp_command_count);
25702570
/* apply new delta */
25712571
if (use_count)
25722572
apply_new_delta_with_count(matviewname, enr->md.name,
@@ -2914,7 +2914,7 @@ apply_old_delta_with_count(const char *matviewname, const char *deltaname_old,
29142914
(aggs_set != NULL ? aggs_set->data : ""));
29152915
if (SPI_exec(querybuf.data, 0) != SPI_OK_UPDATE)
29162916
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
2917-
elogif(Debug_print_ivm, INFO, "apply_old_delta_with_count update: %s", querybuf.data);
2917+
elogif(Debug_print_ivm, INFO, "IVM apply_old_delta_with_count update: %s", querybuf.data);
29182918

29192919
resetStringInfo(&querybuf);
29202920
appendStringInfo(&querybuf,
@@ -2926,7 +2926,7 @@ apply_old_delta_with_count(const char *matviewname, const char *deltaname_old,
29262926
#endif
29272927
if (SPI_exec(querybuf.data, 0) != SPI_OK_DELETE)
29282928
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
2929-
elogif(Debug_print_ivm, INFO, "apply_old_delta_with_count delete: %s", querybuf.data);
2929+
elogif(Debug_print_ivm, INFO, "IVM apply_old_delta_with_count delete: %s", querybuf.data);
29302930

29312931
/* Clean up temp tables. */
29322932
resetStringInfo(&querybuf);
@@ -2982,7 +2982,7 @@ apply_old_delta(const char *matviewname, const char *deltaname_old,
29822982

29832983
if (SPI_exec(querybuf.data, 0) != SPI_OK_DELETE)
29842984
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
2985-
elogif(Debug_print_ivm, INFO, "SPI_exec delete: %s", querybuf.data);
2985+
elogif(Debug_print_ivm, INFO, "IVM apply_old_delta delete: %s", querybuf.data);
29862986
}
29872987

29882988
/*
@@ -3060,7 +3060,7 @@ apply_new_delta_with_count(const char *matviewname, const char* deltaname_new,
30603060
match_cond);
30613061
if (SPI_exec(querybuf.data, 0) != SPI_OK_UPDATE)
30623062
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
3063-
elogif(Debug_print_ivm, INFO, "apply_new_delta_with_count update: %s", querybuf.data);
3063+
elogif(Debug_print_ivm, INFO, "IVM apply_new_delta_with_count update: %s", querybuf.data);
30643064

30653065
resetStringInfo(&querybuf);
30663066
appendStringInfo(&querybuf,
@@ -3073,7 +3073,7 @@ apply_new_delta_with_count(const char *matviewname, const char* deltaname_new,
30733073
#endif
30743074
if (SPI_exec(querybuf.data, 0) != SPI_OK_INSERT)
30753075
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
3076-
elogif(Debug_print_ivm,INFO, "apply_new_delta_with_count insert: %s", querybuf.data);
3076+
elogif(Debug_print_ivm,INFO, "IVM apply_new_delta_with_count insert: %s", querybuf.data);
30773077
}
30783078

30793079
/*
@@ -3102,7 +3102,7 @@ apply_new_delta(const char *matviewname, const char *deltaname_new,
31023102

31033103
if (SPI_exec(querybuf.data, 0) != SPI_OK_INSERT)
31043104
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
3105-
elogif(Debug_print_ivm, INFO, "SPI_exec insert: %s", querybuf.data);
3105+
elogif(Debug_print_ivm, INFO, "IVM apply_new_delta: %s", querybuf.data);
31063106
}
31073107

31083108
/*
@@ -3430,7 +3430,7 @@ refresh_matview_memoryfill(DestReceiver *dest, Query *query,
34303430

34313431
PopActiveSnapshot();
34323432

3433-
elogif(Debug_print_ivm, INFO, "processed %s, %lu tuples.", queryString, processed);
3433+
elogif(Debug_print_ivm, INFO, "IVM processed %s, %lu tuples.", queryString, processed);
34343434

34353435
return processed;
34363436
}
@@ -3576,7 +3576,7 @@ apply_cleanup(Oid matview_id)
35763576
if (SPI_exec(querybuf.data, 0) != SPI_OK_SELECT)
35773577
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
35783578

3579-
elogif(Debug_print_ivm, INFO, "SPI_exec apply_cleanup: %s", querybuf.data);
3579+
elogif(Debug_print_ivm, INFO, "IVM apply_cleanup: %s", querybuf.data);
35803580

35813581
/* Close SPI context. */
35823582
if (SPI_finish() != SPI_OK_FINISH)
@@ -3609,7 +3609,7 @@ ivm_export_snapshot(Oid matview_id, char *snapname)
36093609
if (SPI_exec(querybuf.data, 0) != SPI_OK_SELECT)
36103610
elog(ERROR, "SPI_exec failed: %s", querybuf.data);
36113611

3612-
elogif(Debug_print_ivm, INFO, "SPI_exec ivm_export_snapshot: %s", querybuf.data);
3612+
elogif(Debug_print_ivm, INFO, "IVM ivm_export_snapshot: %s", querybuf.data);
36133613

36143614
/* Close SPI context. */
36153615
if (SPI_finish() != SPI_OK_FINISH)

0 commit comments

Comments
 (0)