[1.5.x] Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets.

Backport of 1e39982b6e from master