diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 6376f5f1e3e..fcf8e0db5ae 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -6595,6 +6595,9 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
PGREQUIRESSL behaves the same as the connection parameter.
+ This environment variable is deprecated in favor of the
+ PGSSLMODE variable, but setting both variables suppresses
+ the effect of PGSSLMODE.