Document database default changes
authorlain <lain@soykaf.club>
Tue, 25 Feb 2020 10:51:01 +0000 (11:51 +0100)
committerlain <lain@soykaf.club>
Tue, 25 Feb 2020 10:53:51 +0000 (11:53 +0100)
CHANGELOG.md
docs/installation/otp_en.md

index 08bb7e1c78aec560582b0a734d6ccff38c11908e..ea72de896a8ed7eb597f41807112f75a3942646d 100644 (file)
@@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 - Rate limiter is now disabled for localhost/socket (unless remoteip plug is enabled)
 - Logger: default log level changed from `warn` to `info`.
 - Config mix task `migrate_to_db` truncates `config` table before migrating the config file.
+- Default to `prepare: :unnamed` in the database configuration.
 <details>
   <summary>API Changes</summary>
 
index aab5197a238fd07fd88e4ebce3cc8725bf3c74cf..32551f7b69e02c9a259cda8f0e6379233820be01 100644 (file)
@@ -73,6 +73,15 @@ rc-service postgresql restart
 systemctl restart postgresql
 ```
 
+If you are using PostgreSQL 12 or higher, add this to your Ecto database configuration
+
+```elixir
+prepare: :named,
+parameters: [
+  plan_cache_mode: "force_custom_plan"
+]
+```
+
 ### Installing Pleroma
 ```sh
 # Create a Pleroma user