pgsql: libpq: Add pqReleaseConnHosts function

2024-02-04 Thread Alvaro Herrera
libpq: Add pqReleaseConnHosts function In a follow up commit we'll need to free this connhost field in a function defined in fe-cancel.c, so here we extract the logic to a dedicated extern function. Author: Jelte Fennema-Nio Discussion: https://postgr.es/m/am5pr83mb0178d3b31ca1b6ec4a8ecc42f7...

pgsql: libpq: Change some static functions to extern

2024-02-04 Thread Alvaro Herrera
libpq: Change some static functions to extern This is in preparation of a follow up commit that starts using these functions from fe-cancel.c. Author: Jelte Fennema-Nio Discussion: https://postgr.es/m/am5pr83mb0178d3b31ca1b6ec4a8ecc42f7...@am5pr83mb0178.eurprd83.prod.outlook.com Branch --

pgsql: Release notes for 16.2, 15.6, 14.11, 13.14, 12.18.

2024-02-04 Thread Tom Lane
Release notes for 16.2, 15.6, 14.11, 13.14, 12.18. Branch -- REL_14_STABLE Details --- https://git.postgresql.org/pg/commitdiff/42a13de57fabfccd1444792d775c45755bfa3c98 Modified Files -- doc/src/sgml/release-14.sgml | 1080 ++ 1 file cha

pgsql: Release notes for 16.2, 15.6, 14.11, 13.14, 12.18.

2024-02-04 Thread Tom Lane
Release notes for 16.2, 15.6, 14.11, 13.14, 12.18. Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/d8f732c1ad48cfe8527db1545da81d4d437c629c Modified Files -- doc/src/sgml/release-13.sgml | 899 +++ 1 file cha

pgsql: Release notes for 16.2, 15.6, 14.11, 13.14, 12.18.

2024-02-04 Thread Tom Lane
Release notes for 16.2, 15.6, 14.11, 13.14, 12.18. Branch -- REL_16_STABLE Details --- https://git.postgresql.org/pg/commitdiff/272aecfc2f496c90ddcba8e69b0f9b5cf2978ec6 Modified Files -- doc/src/sgml/release-16.sgml | 78 ++-- 1 file cha

pgsql: Release notes for 16.2, 15.6, 14.11, 13.14, 12.18.

2024-02-04 Thread Tom Lane
Release notes for 16.2, 15.6, 14.11, 13.14, 12.18. Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commitdiff/0551142a17d1f92d82c38723a89b8e89fe6b952b Modified Files -- doc/src/sgml/release-12.sgml | 890 +++ 1 file cha

pgsql: Release notes for 16.2, 15.6, 14.11, 13.14, 12.18.

2024-02-04 Thread Tom Lane
Release notes for 16.2, 15.6, 14.11, 13.14, 12.18. Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/9a3cf3477617d8f4e296bc0b9f69d956dc601a74 Modified Files -- doc/src/sgml/release-15.sgml | 1301 ++ 1 file cha

pgsql: Refactor CopyReadAttributes{CSV,Text}() to use a callback in COP

2024-02-04 Thread Michael Paquier
Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM CopyReadAttributes{CSV,Text}() are used to parse lines for text and CSV format. This reduces the number of "if" branches that need to be checked when parsing fields in CSV and text mode when dealing with a COPY FROM, something

pgsql: Refactor CopyAttributeOut{CSV,Text}() to use a callback in COPY

2024-02-04 Thread Michael Paquier
Refactor CopyAttributeOut{CSV,Text}() to use a callback in COPY TO These routines are used by the text and CSV formats to send an output representation of a string, applying quotes if required. This is similar to 95fb5b49024a, reducing the number of "if" branches that need to be checked on a per-

pgsql: Improve the comments in 004_subscription.pl.

2024-02-04 Thread Amit Kapila
Improve the comments in 004_subscription.pl. It was not clear whether the subscriptions in the upgraded instance were the ones that retained the previous subscription's properties. Author: Peter Smith Reviewed-by: Vignesh C, Alvaro Herrera Discussion: https://postgr.es/m/cahut+pu1uslphrysptacy1k

pgsql: Enhance libpqrcv APIs to support slot synchronization.

2024-02-04 Thread Amit Kapila
Enhance libpqrcv APIs to support slot synchronization. This patch provides support for regular (non-replication) connections in libpqrcv_connect(). This can be used to execute SQL statements on the primary server without starting a walsender. A new API libpqrcv_get_dbname_from_conninfo() is also