2010-01-13から1日間の記事一覧

psql コマンドでパスワードを省略する

http://postgresql.jp/document/current/html/libpq-pgpass.htmlより、パスワードファイル ".pgpass" を作成する hostname:port:database:username:passwordパーミッションを設定 $ chmod 600 .pgpasspsql コマンドを cron などで自動実行する際に使える。