From e8def1d344ecf85c27229f2993e32710eed3528e Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Fri, 30 Oct 2020 02:33:21 +0300 Subject: [PATCH] check for interrupt when running show --- src/show.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/show.c b/src/show.c index 81a16ad6..ce6604ac 100644 --- a/src/show.c +++ b/src/show.c @@ -101,6 +101,9 @@ do_show(const char *instance_name, time_t requested_backup_id, bool show_archive InstanceConfig *instance = parray_get(instances, i); char backup_instance_path[MAXPGPATH]; + if (interrupted) + elog(ERROR, "Interrupted during show"); + sprintf(backup_instance_path, "%s/%s/%s", backup_path, BACKUPS_DIR, instance->name); if (show_archive)