Bug 995638 - psql buffers stderr in interactive mode
Summary: psql buffers stderr in interactive mode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-09 23:02 UTC by rop
Modified: 2015-05-15 00:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:33:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description rop 2013-08-09 23:02:40 UTC
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:

Comment 1 openshift-github-bot 2013-11-05 21:36:09 UTC
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

Comment 2 Yan Du 2013-11-07 03:23:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.