Skip to content

Commit 85b9ef5

Browse files
committed
Remove unnecessary definition of CancelRequested in bin/scripts/
This variable is now part of the refactored code for query cancellation in fe_utils. This fixes an oversight in commit a4fd3aa. While on it, improve some header includes in bin/scripts/. Author: Michael Paquier Reviewed-by: Fabien Coelho Discussion: https://postgr.es/m/20191203101625.GF1634@paquier.xyz
1 parent b527394 commit 85b9ef5

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed

src/bin/scripts/clusterdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "postgres_fe.h"
1313
#include "common.h"
1414
#include "common/logging.h"
15+
#include "fe_utils/cancel.h"
1516
#include "fe_utils/simple_list.h"
1617
#include "fe_utils/string_utils.h"
1718

src/bin/scripts/common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "common.h"
2121
#include "common/logging.h"
22+
#include "fe_utils/cancel.h"
2223
#include "fe_utils/connect.h"
2324
#include "fe_utils/string_utils.h"
2425

src/bin/scripts/common.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define COMMON_H
1111

1212
#include "common/username.h"
13-
#include "fe_utils/cancel.h"
1413
#include "getopt_long.h" /* pgrminclude ignore */
1514
#include "libpq-fe.h"
1615
#include "pqexpbuffer.h" /* pgrminclude ignore */
@@ -22,8 +21,6 @@ enum trivalue
2221
TRI_YES
2322
};
2423

25-
extern bool CancelRequested;
26-
2724
typedef void (*help_handler) (const char *progname);
2825

2926
extern void handle_help_version_opts(int argc, char *argv[],

src/bin/scripts/reindexdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "catalog/pg_class_d.h"
1515
#include "common.h"
1616
#include "common/logging.h"
17+
#include "fe_utils/cancel.h"
1718
#include "fe_utils/connect.h"
1819
#include "fe_utils/simple_list.h"
1920
#include "fe_utils/string_utils.h"

src/bin/scripts/scripts_parallel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "common.h"
2626
#include "common/logging.h"
27+
#include "fe_utils/cancel.h"
2728
#include "scripts_parallel.h"
2829

2930
static void init_slot(ParallelSlot *slot, PGconn *conn);

src/bin/scripts/vacuumdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "common.h"
1818
#include "common/logging.h"
19+
#include "fe_utils/cancel.h"
1920
#include "fe_utils/connect.h"
2021
#include "fe_utils/simple_list.h"
2122
#include "fe_utils/string_utils.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy