We have Installed fresh gpdb database.But,when trying to connect with template0 database.
[gpadmin@mdw~]$ psql -d template0
psql: FATAL: database "template0" is not currently accepting connections
[gpadmin@mdw~]$
We tried to Update the FLAG
template1=# UPDATE pg_database SET datallowconn = TRUE WHERE datname = 'template0';
ERROR: permission denied: "pg_database" is a system catalog
template1=#
But,it is not allowing to Update The FLAG