>>458
SQL分は文末にセミコロン「;」が必要だよ。

=# select * from pg_stat_activity;

とするか、

=# select *
-# from pg_stat_activity
-# ;

な感じで。