1

I'm in the postgres terminal window and I've switched the output to a file using a command like

\o output.txt

but now I want to return the output to the terminal window, not the text file, without having to exit and log in again. How do I do that - I managed it once but can't now find it in the documentation ...

1 Answer 1

4

From the manual:

\o [ {filename | |command} ]

    Saves future query results to the file filename or pipes future results 
    into a separate Unix shell to execute command. 
    If no arguments are specified, the query output will be reset to the 
    standard output.

(Emphasis mine)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.