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