Re: [GENERAL] load sql from the file in postgresql

2011-04-29 Thread Dennis Grimm
@postgresql.org Subject: [GENERAL] load sql from the file in postgresql hello group, I just started to use postgresql and i want to import data using copy command in a loop. Here is what i did ! 1) following content with name loaddata.sql. \copy table from 'C:\psql\x.txt'; \copy tab

Re: [GENERAL] load sql from the file in postgresql

2011-04-29 Thread Adrian Klaver
On Friday, April 29, 2011 4:01:03 am Raghavendra wrote: > > \i C:\psql\loaddata.sql > > > > > > But it says " C:: Permission denied" > > Give the permission to postgres user on 'loaddata.sql' file. Right click > and in properties give full access to postgres user. Just to be clear this means t

Re: [GENERAL] load sql from the file in postgresql

2011-04-29 Thread Raghavendra
> > \i C:\psql\loaddata.sql > > > But it says " C:: Permission denied" > > Give the permission to postgres user on 'loaddata.sql' file. Right click and in properties give full access to postgres user. Best Regards, Raghavendra EnterpriseDB Corporation The Enterprise Postgres Company Email: raghav

[GENERAL] load sql from the file in postgresql

2011-04-29 Thread Sukuchha Shrestha
hello group, I just started to use postgresql and i want to import data using copy command in a loop. Here is what i did ! 1) following content with name loaddata.sql. \copy table from 'C:\psql\x.txt'; \copy table from 'C:\psql\y.txt'; 2) My loaddata.sql is located in C:\psql\ therefore i tri