PostgreSQL Source Code
git master
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cancel.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* Query cancellation support for frontend code
4
*
5
*
6
* Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/fe_utils/cancel.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
14
#ifndef CANCEL_H
15
#define CANCEL_H
16
17
#include <signal.h>
18
19
#include "
libpq-fe.h
"
20
21
extern
PGDLLIMPORT
volatile
sig_atomic_t
CancelRequested
;
22
23
extern
void
SetCancelConn
(
PGconn
*
conn
);
24
extern
void
ResetCancelConn
(
void
);
25
26
/*
27
* A callback can be optionally set up to be called at cancellation
28
* time.
29
*/
30
extern
void
setup_cancel_handler
(
void
(*query_cancel_callback) (
void
));
31
32
#endif
/* CANCEL_H */
PGDLLIMPORT
#define PGDLLIMPORT
Definition:
c.h:1321
ResetCancelConn
void ResetCancelConn(void)
Definition:
cancel.c:107
CancelRequested
PGDLLIMPORT volatile sig_atomic_t CancelRequested
Definition:
cancel.c:59
SetCancelConn
void SetCancelConn(PGconn *conn)
Definition:
cancel.c:77
setup_cancel_handler
void setup_cancel_handler(void(*query_cancel_callback)(void))
Definition:
cancel.c:183
libpq-fe.h
conn
PGconn * conn
Definition:
streamutil.c:53
pg_conn
Definition:
libpq-int.h:377
src
include
fe_utils
cancel.h
Generated on Wed Nov 27 2024 00:13:24 for PostgreSQL Source Code by
1.9.1