aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-10-25 08:49:45 +0000
committerChristopher Baines <mail@cbaines.net>2020-10-25 10:53:13 +0000
commit852a6812ba833a82b20e3d059b36851ac41eddb1 (patch)
treea15282999e18bdb2175a2dc09883fc30857c8b91
parent6a3b4765f9dfcefa89e65406177d3442b7958c28 (diff)
downloadguix-postgresql-config-file-docs.tar
guix-postgresql-config-file-docs.tar.gz
doc: Document the postgresql-config-file.postgresql-config-file-docs
* doc/guix.texi (PostgreSQL): Document the postgresql-config-file record.
-rw-r--r--doc/guix.texi48
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index b5061877e2..26279388ba 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -18553,6 +18553,54 @@ required to add extensions provided by other packages.
@end table
@end deftp
+@deftp {Data Type} postgresql-config-file
+Data type representing the PostgreSQL configuration file. As shown in
+the following example, this can be used to customize the configuration
+of PostgreSQL. Note that you can use any G-expression or filename in
+place of this record, if you already have a configuration file you'd
+like to use for example.
+
+@lisp
+(service postgresql-service-type
+ (postgresql-configuration
+ (config-file
+ (postgresql-config-file
+ (log-destination "stderr")
+ (hba-file
+ (plain-file "pg_hba.conf"
+ "
+local all all trust
+host all all 127.0.0.1/32 md5
+host all all ::1/128 md5"))
+ (extra-config
+ '(("session_preload_libraries" "'auto_explain'")
+ ("random_page_cost" "2")
+ ("auto_explain.log_min_duration" "'100ms'")
+ ("work_mem" "'500MB'")
+ ("logging_collector" "on")
+ ("log_directory" "'/var/log/postgresql'")))))))
+@end lisp
+
+@table @asis
+@item @code{log-destination} (default: @code{"syslog"})
+The logging method to use for PostgreSQL. Multiple values are accepted,
+separated by commas.
+
+@item @code{hba-file} (default: @code{%default-postgres-hba})
+Filename or G-expression for the host-based authentication
+configuration.
+
+@item @code{ident-file} (default: @code{%default-postgres-ident})
+Filename or G-expression for the user name mapping configuration.
+
+@item @code{extra-config} (default: @code{'()})
+List of additional keys and values to include in the PostgreSQL config
+file. Each entry in the list should be a list where the first element
+is the key, and the remaining elements are the values.
+
+@end table
+@end deftp
+
@subsubheading MariaDB/MySQL
@deffn {Scheme Procedure} mysql-service [#:config (mysql-configuration)]