File tree 2 files changed +20
-18
lines changed
2 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 21
21
#include "libpq-int.h"
22
22
#include "port/pg_bswap.h"
23
23
24
+
25
+ /*
26
+ * pg_cancel (backing struct for PGcancel) stores all data necessary to send a
27
+ * cancel request.
28
+ */
29
+ struct pg_cancel
30
+ {
31
+ SockAddr raddr ; /* Remote address */
32
+ int be_pid ; /* PID of to-be-canceled backend */
33
+ int be_key ; /* cancel key of to-be-canceled backend */
34
+ int pgtcp_user_timeout ; /* tcp user timeout */
35
+ int keepalives ; /* use TCP keepalives? */
36
+ int keepalives_idle ; /* time between TCP keepalives */
37
+ int keepalives_interval ; /* time between TCP keepalive
38
+ * retransmits */
39
+ int keepalives_count ; /* maximum number of TCP keepalive
40
+ * retransmits */
41
+ };
42
+
43
+
24
44
/*
25
45
* PQgetCancel: get a PGcancel structure corresponding to a connection.
26
46
*
Original file line number Diff line number Diff line change @@ -621,24 +621,6 @@ struct pg_conn
621
621
PQExpBufferData workBuffer ; /* expansible string */
622
622
};
623
623
624
- /* PGcancel stores all data necessary to cancel a connection. A copy of this
625
- * data is required to safely cancel a connection running on a different
626
- * thread.
627
- */
628
- struct pg_cancel
629
- {
630
- SockAddr raddr ; /* Remote address */
631
- int be_pid ; /* PID of backend --- needed for cancels */
632
- int be_key ; /* key of backend --- needed for cancels */
633
- int pgtcp_user_timeout ; /* tcp user timeout */
634
- int keepalives ; /* use TCP keepalives? */
635
- int keepalives_idle ; /* time between TCP keepalives */
636
- int keepalives_interval ; /* time between TCP keepalive
637
- * retransmits */
638
- int keepalives_count ; /* maximum number of TCP keepalive
639
- * retransmits */
640
- };
641
-
642
624
643
625
/* String descriptions of the ExecStatusTypes.
644
626
* direct use of this array is deprecated; call PQresStatus() instead.
You can’t perform that action at this time.
0 commit comments