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