2016-08-04 37 views
1

我有Ubuntu 14服务器dockerized。所有的都不错我猜想,但是当我将倾表:错误psql:警告:额外的命令行参数

psql -c -h myserver -p5433 mydb -t gr_service_plan_xxx > gr_service_plan_xxx.sql 

出现错误:

PSQL:警告:附加的命令行参数

什么这是什么意思?我在命令行中错过了什么吗?

+0

请不要不要在多个StackExchange站点上发布相同的问题http://askubuntu.com/q/808292/457662 – techraf

回答

1

从您包括命令行参数来看,我认为你打算运行pg_dumppsql

pg_dump -c -h myserver -p 5433 mydb -t gr_service_plan_xxx > gr_service_plan_xxx.sql 

,或者您需要为psql指定命令,例如:

psql -h myserver -p5433 mydb -c 'SELECT * FROM gr_service_plan_xxx;' > gr_service_plan_xxx.sql