Postgres COPY FROM csv file- No such file or directory

后端 未结 5 818
失恋的感觉
失恋的感觉 2021-02-04 01:34

I\'m trying to import a (rather large) .txt file into a table geonames in PostgreSQL 9.1. I\'m in the /~ directory of my server, with a file named US.txt placed in that director

5条回答
  •  清歌不尽
    2021-02-04 01:44

    The paths are relative to the PostgreSQL server, not the psql client.

    Assuming you are running PostgreSQL 9.4, you can put US.txt in the directory /var/lib/postgresql/9.4/main/.

提交回复
热议问题