* equivalent command was to be issued manually.
*
* Note we assume that we are going to report the next command as soon as we're
- * done with the current one, and exiting right after the last one, so we don't
+ * done with the current one, and exit right after the last one, so we don't
* bother to report "<IDLE>" or some such.
*/
static void
" %s.%s", nspname, relname);
}
+ /* Set statement_timestamp() to current time for pg_stat_activity */
+ SetCurrentStatementStartTimestamp();
+
pgstat_report_activity(activity);
}