mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
libpq: Move cancellation related functions to fe-cancel.c
In follow up commits we'll add more functions related to query cancellations. This groups those all together instead of mixing them with the other functions in fe-connect.c. The formerly static parse_int_param() function had to be exported to other libpq users, so it's been renamed pqParseIntParam() and moved to a more reasonable place within fe-connect.c (rather than randomly between various keepalive-related routines). Author: Jelte Fennema-Nio <jelte.fennema@microsoft.com> Discussion: https://postgr.es/m/AM5PR83MB0178D3B31CA1B6EC4A8ECC42F7529@AM5PR83MB0178.EURPRD83.prod.outlook.com
This commit is contained in:
@@ -675,9 +675,14 @@ extern char *const pgresStatus[];
|
||||
/* === in fe-connect.c === */
|
||||
|
||||
extern void pqDropConnection(PGconn *conn, bool flushInput);
|
||||
#if defined(WIN32) && defined(SIO_KEEPALIVE_VALS)
|
||||
extern int pqSetKeepalivesWin32(pgsocket sock, int idle, int interval);
|
||||
#endif
|
||||
extern int pqPacketSend(PGconn *conn, char pack_type,
|
||||
const void *buf, size_t buf_len);
|
||||
extern bool pqGetHomeDirectory(char *buf, int bufsize);
|
||||
extern bool pqParseIntParam(const char *value, int *result, PGconn *conn,
|
||||
const char *context);
|
||||
|
||||
extern pgthreadlock_t pg_g_threadlock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user