我试过这个命令
pg_restore -U postgres -d test1 table4.dump得到了错误
pg_restore:归档输入文件似乎是文本格式转储。请使用psql。
如何恢复转储文件?
发布于 2018-09-21 09:06:41
您已经以普通sql格式转储了该表,该格式被设计为向psql提供数据。
这是pg_restore!-> 恢复无法识别的。
整个分贝:
cat db.txt | psql dbname或
psql dbname < db.txt表:
使用psql连接到数据库:
psql /i path/to/filename会有帮助的..。
编辑/更新:
您要求AWS红移-以下是解决方案:
登录到AWS管理控制台,并在https://console.aws.amazon.com/redshift/上打开Amazon控制台
https://stackoverflow.com/questions/52440107
复制相似问题