10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

psqlでパスワードを聞かれないバッチを作成するために

Posted at

set PASSWORD=hoge を記述する。

psqlはPASSWORDという変数が設定されていると、そのパスワードを取りに行くので、psql実行文の前に上記記述を書けばおk

例)
set PASSWORD=hoge
psql -U hoge -f execute_sql.sql

10
11
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?