diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 2944911b42c..423a9699f0b 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -6331,7 +6331,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
at ~/.pg_service.conf or the location
specified by the environment variable PGSERVICEFILE,
or it can be a system-wide file
- at /etc/pg_service.conf or in the directory
+ at `pg_config --sysconfdir`/pg_service.conf or in the directory
specified by the environment variable
PGSYSCONFDIR. If service definitions with the same
name exist in the user and the system file, the user file takes