I am trying to export from a large postgres 8.1 table a couple of rows using
copy (select * from tablename limit 100) to 'absolute path to file';
but I get
ERROR: syntax error at or near "(" at character 6.
Any ideas what might be going wrong ? By the way I am not super user in the database but I believe that would have produced a different kind of error. If you have any other idea to dump a couple of rows from SQL (in a format to insert them easily, without coding) other than using copy I open to suggestions.