"Error: Cpanel::AdminBin::adminrun(postgres)" Do you also get this type of error? You might want to check this out to help you solve this problem.
warn [cpanel] Cpanel::AdminBin::adminrun(postgres) (exit code = 1) set error in context postgres:
warn [Postgres::updateprivs] Encountered error in Postgres::updateprivs: postgresadmin had an unknown error.
When PostgreSQL is installed on the server, accessing it (PostgreSQL databases) from cPanel shows offline. In such situations, best way to troubleshoot is refer /usr/local/apache/logs/error_log. See what they show. If they report any error as above, perform the steps in this post.
Login to your server as root.
Login to WHM >> SQL Services >> Postgres Config >> Click on “Install Config”.
Login to WHM >> SQL Services >> Postgres Config >> “Set a Postgresql password too”
Try accessing PostgreSQL databases now.