- log in docker container in ec2-user
apt-get update
apt-get install -y postgresql
apt-get install -y dnsutils
- this package is for nslookup
nslookup xxxx.yyyyyy.us-west-2.rds.amazonaws.com
psql -h <private-ip-address> -U <user-name> -d <database-name>
show timezone;
SELECT datname, pg_encoding_to_char(encoding) FROM pg_database;
docker exec -i -t e662539785ed bash