This is the problem with Windows servers in this forum. In Linux, eg. Debian, I would look for a PHP module php7.X-pqsql.
Installing and upgrading help
How to install Moodle with separate PostgreSQL server in Win2012 Server
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.