Juan Camilo Marín wrote:
> => select * from \d summary_table;
>
> The sentense start after "=> select * from" I don't know why this is
> happen.
Probably a terminal emulation issue. Readline will be sending the wrong
escape sequences to control your terminal or your terminal will be
misbehaving somehow.
A common cause of readline issues is resizing your terminal window. Try
testing in a terminal window that's the default size. If that works OK,
try resizing it while it's still running the shell, THEN start psql.
--
Craig Ringer