Re: ERROR: must be superuser to COPY to or from a file - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: ERROR: must be superuser to COPY to or from a file
Date
Msg-id 231234.31398.qm@web31801.mail.mud.yahoo.com
Whole thread Raw
In response to Re: ERROR: must be superuser to COPY to or from a file  ("Jorge Alberto" <csnmgeek@gmail.com>)
List pgsql-novice
--- Jorge Alberto <csnmgeek@gmail.com> wrote:

> correct syntax:
> mydb=> \copy weather FROM /home/fideito/weather.txt
>
> I have to delete the "" and the ";" to make it work.
> Do you know why is that?

my guess is that \copy is a psql command not a PostgreSQL command.

So \copy has different rules than than the syntax that PostgreSQL directly interprets.

Regards,
Richard Broersma Jr.

pgsql-novice by date:

Previous
From: "Jorge Alberto"
Date:
Subject: Re: ERROR: must be superuser to COPY to or from a file
Next
From: Tom Lane
Date:
Subject: Re: Why is my view ddl being altered by postgres?