トップ 一覧 検索 ヘルプ RSS ログイン

PostgreSQLの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
*http://www.postgresql.jp/document/pg825doc/index.html
* SQL

!!アクセス制御例

* postgresql.conf
** listen_addresses = '*'
*pg_hba.conf 
**host    all             all     xxx.xxx.xxx.xxx/32        trust

!!データ移行

*http://www.postgresql.jp/document/current/html/backup-dump.html#BACKUP-DUMP-ALL

 pg_dumpall > outfile
 psql -f infile postgres

!!読み出し権限

*http://itpro.nikkeibp.co.jp/article/COLUMN/20050904/220557/?P=2
**グループロールmygroupには,GRANT文で権限を与えることができる。例えば,あるテーブルt1の読み出し権限を以下のGRANT文で与えることができる。
 GRANT SELECT ON t1 TO mygroup;

*http://www.postgresql.jp/document/pg830doc/html/sql-grant.html
 GRANT admins TO joe;