I'm having problems with psql. Looks like bug.
Steps to reproduce on my box (100% segfaults):
#psql -U postgres -d mydb
$EXPLAIN ANALYZE SELECT .....
after 20s I'm getting a plan & at the end there is smth like "stdin:
END"
then I press ENTER and I have back psql console\
finally I press up arrow to reexecute and that causes "Segmentation
fault" and psql to exit
bash-3.00$ uname -a
SunOS sss01 5.10 Generic_142900-08 sun4v sparc SUNW,Netra-T5220
bash-3.00$ psql -version
psql (8.4.4)