9
8

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 3 years have passed since last update.

PostgreSQLのpg_hba.confファイルの場所を探す

Posted at

PostgreSQLのpg_hba.confファイルの場所を探すには、以下のコマンドを実行します。

psql -U {ユーザー名} -t -P format=unaligned -c 'show hba_file';

実行例:
ユーザー名をpostgresとしています。

$ psql -U postgres -t -P format=unaligned -c 'show hba_file';
/var/lib/postgresql/data/pg_hba.conf

返される結果は、ホストOSの種類やPostgreSQLのバージョンにより異なります。

以上。

9
8
0

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
9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?