test=# COPY (SELECT count(*) FROM pg_class) TO '/tmp/file.csv' CSV;
COPY 1
something like this is even more fancy.
can you export the result of any query.
we implemented this feature for PostgreSQL 8.2 and beyond.
best regards,
hans
Hans-Jürgen Schönig
Cybertec Schönig & Schönig...
You can use a function called "crosstab" to do that.
It is part of the PostgreSQL contrib-section and it has to be installed separately. Checkout the "contrib/tablefunc" directory inside your sourceball.
Hans-Jürgen Schönig
Cybertec Schönig & Schönig GmbH
URL: http://www.postgresql-support.de...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.