I have no idea why this isn't working.
I'm trying to direct all output from my query to a file.
I entered postgres by typing in:
then
then entering my database:
Now, I do my query as follows (example):
And i get the error:
I've tried inputting a whole path as well, like this:
But I still get the same problem!
I've tried \g as well, same problem.
Please help!
I'm trying to direct all output from my query to a file.
I entered postgres by typing in:
Code:
> sudo su postgres
Code:
> psql
Code:
> \c mydb
Code:
> select * from table \o myfile.out
myfile.out: Permission Denied.
I've tried inputting a whole path as well, like this:
Code:
> select * from table \o /home/me/Desktop/myfile.out
I've tried \g as well, same problem.
Please help!
Comment