I'd like is to export a table in a postgres server to a local folder (CSV).
I'm using pSQL console, and the command:
COPY (SELECT * FROM <nameTable>) TO 'C/temp/<nameTable>.csv' DELIMITER ',' CSV HEADER;
When I run it, the console shows "ERROR: must be superuser to copy to or from a file". All I've configured is the Server properties (server-user, etc) when I installed pgAdmin III (and I think I did enter a Superuser).
So how can I:
Know who the current logged user is, and whether he's a superuser?
Change the logged user?