0

I tried to execute '\i file_location' query in postgresql command line.I tried solving it by giving two different file paths i.e C://Users/public/person.sql and F://data//person.sql but it didn't work at all showing error as permission denied.

enter image description here

1
  • 1
    Well, give the PostgreSQL server permission. Commented Sep 21, 2020 at 14:29

1 Answer 1

1

The path must be specified using slashes (as in your question). If you use backslashes, as in your picture, you will get this permission denied error.

==> use slashes.

\i D:\temp\sel.sql
D:: Permission denied
\i D:/temp/sel.sql
SET
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.