Skip to main content
2 events
when toggle format what by license comment
Oct 22 at 16:37 comment added Rafs This is what works for me. I have a psql script and I want to exit if a psql variable is not set, i.e., checking if :{?filename} is false => \quit. I can use \quit or \q to end the script without relying on ON_ERROR_STOP being specified. The only bit I need to be cautious about is the exit status of 0 in this case.
Jan 17, 2022 at 21:24 history answered tbussmann CC BY-SA 4.0