Re: pgsql: Re-validate connection string in libpqrcv_connect().

2024-01-15 Thread Tom Lane
Jeff Davis writes: >> Re-validate connection string in libpqrcv_connect(). > Looks like the test is causing problems on drogo: > ERROR: could not connect to the publisher: connection to server at > "127.0.0.1", port 54707 failed: FATAL: SSPI authentication failed for > user "regress_test_user"

pgsql: libpq: Add PQsendPipelineSync()

2024-01-15 Thread Michael Paquier
libpq: Add PQsendPipelineSync() This new function is equivalent to PQpipelineSync(), except that it does not flush anything to the server except if the size threshold of the output buffer is reached; the user must subsequently call PQflush() instead. Its purpose is to reduce the system call overh

pgsql: Fix a typo and some doc indentation related to libpq pipeline fu

2024-01-15 Thread Michael Paquier
Fix a typo and some doc indentation related to libpq pipeline functions Noticed while reviewing the area for a different patch. This is cosmetic, so no backpatch is done. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/83eb244e419efd43959fdd544ff8c30e175565ef Modi

pgsql: Fix typos.

2024-01-15 Thread Robert Haas
Fix typos. Alexander Lakhin Discussion: http://postgr.es/m/212b0987-83e5-e2ae-c5e8-b8170fdaf...@gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/237d01139b8a2ad26036d9025ae8e8e99b53e08c Modified Files -- doc/src/sgml/func.sgml|

pgsql: Fix 'negative bitmapset member' error

2024-01-15 Thread Alexander Korotkov
Fix 'negative bitmapset member' error When removing a useless join, we'd remove PHVs that are not used at join partner rels or above the join. A PHV that references the join's relid in ph_eval_at is logically "above" the join and thus should not be removed. We have the following check for that:

pgsql: Avoid useless ReplicationOriginExitCleanup locking

2024-01-15 Thread Alvaro Herrera
Avoid useless ReplicationOriginExitCleanup locking When session_replication_state is NULL, we can know there's nothing to do with no lock acquisition. Do that. Author: Bharath Rupireddy Discussion: https://postgr.es/m/calj2acx+yaeru5xjqr4c7klsto_f7dbrnf8wgehvjzcktnu...@mail.gmail.com Branch -