ubuntu 本机切换postgres用户
sudo su postgres
centos7
su postgres
1.Linux环境下
#su postgres
-bash-3.2$psql -U postgres
postgres=#alter user postgres with password 'new password';
postgres=#\q
备份
PG提供物理备份和逻辑备份(本篇主要讲逻辑备份)
物理备份:WAL热备份
逻辑备份:
pg_dump,pg_dumpall,恢复时pg_restore
查看帮助命令:
pg_dump --help
以下是成功的命令
centos