Postgres ERROR: could not open file for reading: Permission denied

前端 未结 15 2333
慢半拍i
慢半拍i 2020-12-04 13:15

Computer: Mac OS X, version 10.8 Database: Postgres

Trying to import csv file into postgres.

pg> copy items_ordered from \'/users/darchcruise/desk         


        
15条回答
  •  没有蜡笔的小新
    2020-12-04 13:30

    You must grant the pg_read_server_files permission to the user if you are not using postgres superuser.

    Example:

    GRANT pg_read_server_files TO my_user WITH ADMIN OPTION;
    

提交回复
热议问题