The following is a high list of queries to employ when troubleshooting performance, display and configuration issues related to Postgres,
DX Platform 2x
a) obtain the postgres pod name
kubectl get pods -n<namespace> | grep post
Example:
kubectl get pods -ndxi | grep post
postgresql-77c878cc47-76hwm 1/1 Running 0 26s
b) login to pod
kubectl exec -it <postgresql-pod> -n<namespace> bash
Example:
kubectl exec -it postgresql-77c878cc47-76hwm -ndxi bash
psql -d database -U user -W
Example:
psql -U aopuser -d aoplatform
\c dbname
Example:
\c aoplatform aopuser
\l
\l+
\d+
\d table_name
for example:
\d aradminbasicauthuser
\s
\?
\q