Description of problem: On OpenShift, when running psql interactively from command line, it seems like stderr is somehow buffered, thus all error-msgs remain hidden to the user until you exit the psql-session. See short demo at: https://www.openshift.com/forums/openshift/psql-interactive-error-reporting Version-Release number of selected component (if applicable): OpenShift in production 2013-08-09 psql - 8.4.3 How reproducible: See short demo at: https://www.openshift.com/forums/openshift/psql-interactive-error-reporting Actual results: All error-msgs from psql seems to be buffered until you exit session. Expected results: Errors should be displayed immediately when encountered interactively Additional info:
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/a1d90f1fa848291b934281eabce1496540f5fa06 Fix bug 995638: do not store stderr in a variable during interactive psql
test on devenv 3998 [app2-111.dev.rhcloud.com 527b05139c35a10d6a000012]\> psql psql (8.4.18) Type "help" for help. app2=# select foo from bar; ERROR: relation "bar" does not exist LINE 1: select foo from bar; ^ app2=# select count(*) from abc; count ------- 1 (1 row) Move bug to verified.