diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-19 11:04:25 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-19 11:04:25 +0900 |
| commit | 16b1072f661051e6bc20d8dcafdb183960dd188b (patch) | |
| tree | 8ab568c116248f2d5479b0db9b2b3e924472afc1 /doc | |
| parent | 2345850ffeb4b44590322b281cc49a16c73eacf8 (diff) | |
services: postgresql: Log to stderr instead of syslog by default.
This corresponds to postgresql's own default; it means we can let go of the
syslogd dependency by default and arguably makes it easier to find some
postgresql related errors.
* doc/guix.texi (Database Services) <postgresl-config-file>: Adjust example
to showcase something different than the new default. Change documented
default to stderr.
* gnu/services/databases.scm (<postgresql-config-file>)
[log-destination]: Change default value to stderr.
(postgresql-shepherd-service) <requirement>: Conditionally add
syslogd dependency only if found in log-destination value.
(postgresql-role-shepherd-service) <#:log-file>: Uncomment.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 7c37c2aba16..9c591faaccc 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -28929,7 +28929,7 @@ like to use for example. | |||
| 28929 | (postgresql-configuration | 28929 | (postgresql-configuration |
| 28930 | (config-file | 28930 | (config-file |
| 28931 | (postgresql-config-file | 28931 | (postgresql-config-file |
| 28932 | (log-destination "stderr") | 28932 | (log-destination "csvlog,stderr") |
| 28933 | (hba-file | 28933 | (hba-file |
| 28934 | (plain-file "pg_hba.conf" | 28934 | (plain-file "pg_hba.conf" |
| 28935 | " | 28935 | " |
| @@ -28946,7 +28946,7 @@ host all all ::1/128 md5")) | |||
| 28946 | @end lisp | 28946 | @end lisp |
| 28947 | 28947 | ||
| 28948 | @table @asis | 28948 | @table @asis |
| 28949 | @item @code{log-destination} (default: @code{"syslog"}) | 28949 | @item @code{log-destination} (default: @code{"stderr"}) |
| 28950 | The logging method to use for PostgreSQL@. Valid values are | 28950 | The logging method to use for PostgreSQL@. Valid values are |
| 28951 | @code{"stderr"}, @code{"csvlog"}, @code{"jsonlog"}, @code{"syslog"} and | 28951 | @code{"stderr"}, @code{"csvlog"}, @code{"jsonlog"}, @code{"syslog"} and |
| 28952 | @code{"eventlog"}. Multiple values are accepted, separated by commas. | 28952 | @code{"eventlog"}. Multiple values are accepted, separated by commas. |
