May 17, 2026, 11:40 PM
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
Find location of postgres related conf files
|
||||
|
||||
dbaclass=# SELECT name, setting FROM pg_settings WHERE category = 'File Locations';
|
||||
name | setting
|
||||
-------------------+---------------------------------------------
|
||||
config_file | /Library/PostgreSQL/10/data/postgresql.conf
|
||||
data_directory | /Library/PostgreSQL/10/data
|
||||
external_pid_file |
|
||||
hba_file | /Library/PostgreSQL/10/data/pg_hba.conf
|
||||
ident_file | /Library/PostgreSQL/10/data/pg_ident.conf
|
||||
(5 rows)
|
||||
|
||||
alternatively:
|
||||
|
||||
postgres=# show config_file;
|
||||
|
||||
config_file
|
||||
--------------------------------------------
|
||||
|
||||
/Library/PostgreSQL/10/data/postgresql.conf
|
||||
|
||||
(1 row)
|
||||
|
||||
postgres=# show hba_file;
|
||||
|
||||
hba_file
|
||||
-----------------------------------------
|
||||
/Library/PostgreSQL/10/data/pg_hba.conf
|
||||
|
||||
(1 row)
|
||||
|
||||
postgres=# show ident_file;
|
||||
Reference in New Issue
Block a user