psql definitely requires it, at least by default. A bit inconvenient, but since you're usually using it for manual one-off tasks, I'll gladly trade a bit of convenience for the additional ass-coverage.
The postgres cli psql requires semicolon by default but there's an option to send the query on newline instead. You can also use \g to send the query without the semicolon. The postgres protocol doesn't require a semicolon but does allow it to separate statements within a single command. The extended query protocol only allows one statement but it can end in a semicolon
View all comments
Show parent comment
2
u/Exepony Oct 14 '25
psqldefinitely requires it, at least by default. A bit inconvenient, but since you're usually using it for manual one-off tasks, I'll gladly trade a bit of convenience for the additional ass-coverage.