[pgsql-jp: 38661] Re: PGPASSWORD の利用で回避できました。 <-- Re: バックアップの自動化

Shima Shizuo r6 @ chubu.interq.or.jp
2007年 8月 17日 (金) 22:21:00 JST


こんにちは、嶋です。

>■バッチの内容
>-----
>SET PATH=%PATH%;.\pg_dlls\
>SET PGPASSWORD=1111
>psql -h localhost -U postgres -W -e -f execute.sql db_name
>
>PAUSE
>-----

% echo 1111|psql -h localhost -U postgres -W -e -f execute.sql db_name

とか、

% echo 1111>password.txt
% psql -h localhost -U postgres -W -e -f execute.sql db_name < password.txt


などとして回避できるかも・・

----
Shima Shizuo  r6 @ chubu.interq.or.jp




pgsql-jp メーリングリストの案内