postgresql/src
Michael Paquier 90354030b8 libpq: Fix "servicefile" after fallback to system service file
When "servicefile" is specified in a connection string but the requested
service is not found in this file, libpq falls back to a default file,
pg_service.conf in PGSYSCONFDIR.  The "servicefile" option was missing
an update in this case, causing an incorrect value to be reported,
impacting SERVICEFILE in psql, for example.

An extra update of the option is added in this commit, based on the
actual file where the service name has been found.  A test is added to
cover this problem.

Oversight in 092f3c63ef.

Author: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/59DD1652-4EB5-449B-8DE3-959F06561A96@gmail.com
2026-06-04 15:12:11 +09:00
..
backend Fix race in ReplicationSlotRelease() for ephemeral slots 2026-06-03 18:44:56 +09:00
bin pg_dump: scope indAttNames per index in getIndexes() 2026-06-03 13:01:26 +03:00
common pg_test_timing: Show additional TSC clock source debug info 2026-05-16 11:51:34 -04:00
fe_utils Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
include Constistent naming for datacheckusms processes 2026-05-29 21:26:25 +02:00
interfaces libpq: Fix "servicefile" after fallback to system service file 2026-06-04 15:12:11 +09:00
makefiles Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
pl Translation updates 2026-06-01 12:13:54 +02:00
port pg_test_timing: Show additional TSC clock source debug info 2026-05-16 11:51:34 -04:00
template Switch the semaphore API on Solaris to unnamed POSIX. 2026-03-14 14:10:32 -04:00
test Improve overflow/underflow handling in regr_intercept(). 2026-06-03 09:20:21 +01:00
timezone Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
tools pg_test_timing: Show additional TSC clock source debug info 2026-05-16 11:51:34 -04:00
tutorial Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
.gitignore
DEVELOPERS
Makefile Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
Makefile.global.in Update Unicode data to CLDR 48.2 2026-04-13 11:13:36 +02:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00