I have a large batch of of comprising over 300000 insert commands in PostgreSQL. I can not even load it into pgAdmin (it crashes). so I am using the command line and \i to execute the file. I'd like to see the error messages (if any). How may I save the messages into a log file through command line? appreciate your help thank you
Edit I have already seen some other posts but couldn't help.