"Andrew Deryabin" <andrew(at)deryabin(dot)com> writes:
> [pgsql(at)localhost:site]=# COPY (SELECT 1) TO STDOUT \g filename.ext
The way you're supposed to do that is with \copy.
It might be more consistent to do it as above, but I'm not sure
anyone will take the time to make it happen ...
regards, tom lane