Consistently use "superuser" instead of "super user"
[pgsql.git] / src / include / fe_utils / cancel.h
blob3a87d1a8090b5d2a36e6c07d4202581a94802a0b
1 /*-------------------------------------------------------------------------
3 * Query cancellation support for frontend code
6 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/fe_utils/cancel.h
11 *-------------------------------------------------------------------------
14 #ifndef CANCEL_H
15 #define CANCEL_H
17 #include <signal.h>
19 #include "libpq-fe.h"
21 extern volatile sig_atomic_t CancelRequested;
23 extern void SetCancelConn(PGconn *conn);
24 extern void ResetCancelConn(void);
27 * A callback can be optionally set up to be called at cancellation
28 * time.
30 extern void setup_cancel_handler(void (*cancel_callback) (void));
32 #endif /* CANCEL_H */