Skip to content

Commit

Permalink
-error
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Dec 4, 2023
1 parent 1d14d76 commit 6a29836
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dest.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,18 @@ static void dest_ungrab(grub_t *grub, StringInfo buf) {

bool dest_timeout(void) {
int StatementTimeoutMy = StatementTimeout;
grub_t error;
grub_t output;
if (task_work(&task)) return true;
elog(DEBUG1, "id = %li, timeout = %i, input = %s, count = %i", task.shared->id, task.timeout, task.input, task.count);
set_ps_display_my("timeout");
StatementTimeout = task.timeout;
dest_grab(&error, stderr);
dest_grab(&output, stdout);
PG_TRY();
if (!task.active) ereport(ERROR, (errcode(ERRCODE_QUERY_CANCELED), errmsg("task not active")));
dest_execute();
PG_CATCH();
dest_catch();
PG_END_TRY();
dest_ungrab(&error, &task.error);
dest_ungrab(&output, &task.output);
StatementTimeout = StatementTimeoutMy;
pgstat_report_stat(false);
Expand Down

0 comments on commit 6a29836

Please sign in to comment.