|
20 | 20 | -- Tested on PostgreSQL 9.x, 10.x, 11.x, 12.x, 13.0
|
21 | 21 |
|
22 | 22 | SELECT
|
23 |
| - current_setting('config_file') AS "config_file", |
24 |
| - current_setting('hba_file') AS "hba_file", |
25 |
| - current_setting('ident_file') AS "ident_file"; |
| 23 | + current_setting('config_file') AS "config_file", |
| 24 | + current_setting('hba_file') AS "hba_file", |
| 25 | + current_setting('ident_file') AS "ident_file"; |
26 | 26 |
|
27 | 27 | SELECT
|
28 |
| - current_setting('data_directory') AS "data_directory", |
29 |
| - current_setting('external_pid_file') AS "external_pid_file"; |
| 28 | + current_setting('data_directory') AS "data_directory", |
| 29 | + current_setting('external_pid_file') AS "external_pid_file"; |
30 | 30 |
|
31 | 31 | SELECT
|
32 | 32 | -- not available on PostgreSQL < 9.3
|
33 |
| - --current_setting('unix_socket_directories') AS "unix_socket_directories", |
34 |
| - current_setting('unix_socket_permissions') AS "unix_socket_permissions", |
35 |
| - current_setting('unix_socket_group') AS "unix_socket_group"; |
| 33 | + --current_setting('unix_socket_directories') AS "unix_socket_directories", |
| 34 | + current_setting('unix_socket_permissions') AS "unix_socket_permissions", |
| 35 | + current_setting('unix_socket_group') AS "unix_socket_group"; |
36 | 36 |
|
37 | 37 | SELECT
|
38 |
| - -- not available on PostgreSQL < 10 |
39 |
| - --pg_current_logfile(), |
40 |
| - current_setting('log_directory') AS "log_directory", -- log |
41 |
| - current_setting('log_filename') AS "log_filename"; -- postgresql-%Y-%m-%d_%H%M%S.log |
| 38 | + -- not available on PostgreSQL < 10 |
| 39 | + --pg_current_logfile(), |
| 40 | + current_setting('log_directory') AS "log_directory", -- log |
| 41 | + current_setting('log_filename') AS "log_filename"; -- postgresql-%Y-%m-%d_%H%M%S.log |
42 | 42 |
|
43 | 43 | --SELECT
|
44 |
| - -- CASE WHEN pg_current_logfile() IS NOT NULL THEN pg_ls_logdir() END AS pg_ls_logdir, |
45 |
| - -- not available on PostgreSQL < 10 |
46 |
| - --pg_ls_waldir() |
47 |
| - -- not available on PostgreSQL <= 11.8 |
48 |
| - --pg_ls_archive_statusdir(), |
49 |
| - --pg_ls_tmpdir(); |
| 44 | + -- CASE WHEN pg_current_logfile() IS NOT NULL THEN pg_ls_logdir() END AS pg_ls_logdir, |
| 45 | + -- not available on PostgreSQL < 10 |
| 46 | + --pg_ls_waldir() |
| 47 | + -- not available on PostgreSQL <= 11.8 |
| 48 | + --pg_ls_archive_statusdir(), |
| 49 | + --pg_ls_tmpdir(); |
50 | 50 | ;
|
0 commit comments