postgresqlのTips諸々 ref: http://qiita.com/shibukixxx/items/4b6259e1038702945fb6