postgres 使用copy导入数据时,报权限问题。

解决方法,使用\copy代替copy

\copy tableName from ‘/file/path’