$ brew install postgresql
$ psql --version
postgres (PostgreSQL) 9.6.2
使ってみる
% psql "host=matrix.***.ap-northeast-1.redshift.amazonaws.com user=neo dbname=zion port=5439"
Password:
psql (9.6.2, server 8.0.2)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: on)
Type "help" for help.
zion=# \l
List of databases
name | owner | encoding | access privileges
dev | rdsdb | UNICODE |
padb_harvest | rdsdb | UNICODE |
template0 | rdsdb | UNICODE | rdsdb=CT/rdsdb
template1 | rdsdb | UNICODE | rdsdb=CT/rdsdb
zion | neo | UNICODE |
(5 rows)
zion=# \d
List of relations
schema | name | type | owner
public | customer | table | neo
public | dwdate | table | neo
public | lineorder | table | neo
public | part | table | neo
public | supplier | table | neo
(5 rows)
zion-# \q