Skip to content

S-094の解答が権限不足により失敗する #120

@nknytk

Description

@nknytk

事象

実行したセルの内容は下記の通りです。S-093で作成したテーブル名をproduct2としています。

%%sql
COPY product2 TO '/tmp/data/product2.csv' WITH CSV HEADER encoding 'UTF-8'

下記のエラーとなりました。

 * postgresql://padawan:***@db:5432/dsdojo_db
(psycopg2.errors.InsufficientPrivilege) could not open file "/tmp/data/product2.csv" for writing: Permission denied
HINT:  COPY TO instructs the PostgreSQL server process to write a file. You may want a client-side facility such as psql's \copy.

[SQL: COPY product2 TO '/tmp/data/product2.csv' WITH CSV HEADER encoding 'UTF-8']
(Background on this error at: https://sqlalche.me/e/14/f405)

環境

OS: Ubuntu 20.04
docker: 20.10.12
docker-compose: 1.29.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions