psql -d

psql -dで指定のデータベースに接続する。

https://www.postgresql.jp/docs/9.4/app-psql.html

createdbでpostgrestestというDBを作成する。

psql -dでpostgrestest接続。
psql -dでpostgrestest接続。

psql -dでpostgrestest接続。