Skip to content

postgresql \i import sql file permission denied

postgresql \i import sql file permission denied in windows

postgres=# \i C:\app\orauser\person.sql
C:: Permission denied


use ‘/’ instead of use ‘\’

postgres=# \i C:/app/orauser/person.sql

postgres=# \d
List of relations
Schema | Name | Type | Owner
public | person | table | postgres
public | person_id_seq | sequence | postgres
(2 rows)

postgres=# select count(*) from person;


(1 row)

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: