pgsql: libpq: Move cancellation related functions to fe-cancel.c

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq: Move cancellation related functions to fe-cancel.c
Date: 2024-01-29 11:41:43
Message-ID: E1rUQ1H-003g6l-Eq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)fennema(at)microsoft(dot)com>
Discussion: https://postgr.es/m/AM5PR83MB0178D3B31CA1B6EC4A8ECC42F7529@AM5PR83MB0178.EURPRD83.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6d4565a05f3fb9b7a439e7ecfc2be68bf4dabf48

Modified Files
--------------
src/interfaces/libpq/Makefile | 1 +
src/interfaces/libpq/fe-cancel.c | 387 ++++++++++++++++++++++++++++++
src/interfaces/libpq/fe-connect.c | 483 +++++---------------------------------
src/interfaces/libpq/libpq-int.h | 5 +
src/interfaces/libpq/meson.build | 1 +
5 files changed, 451 insertions(+), 426 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-01-29 11:52:37 pgsql: Fix locking when fixing an incomplete split of a GIN internal pa
Previous Message Amit Kapila 2024-01-29 06:54:51 pgsql: Doc: Fix incorrect reference to conflicting column in pg_replica