About Me

My photo
Working as Technical Lead in CollabNET software private limited.

Thursday, 24 September 2009

psql output to file

Below is the command to redirect psql output to a file.

psql> \o /tmp/file.txt
psql> select * from table

This should allow output to custom file.

No comments: