summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-02-25 11:51:01 +0100
committerlain <lain@soykaf.club>2020-02-25 11:53:51 +0100
commite4804137b3b5d269515bc40b9f173a1fc8931014 (patch)
tree1f97644af3d217e4fe7f005c593f5909d0a75e6b
parentf71aa644b1aedba32c83bad76bc512bfe52e6c75 (diff)
downloadpleroma-e4804137b3b5d269515bc40b9f173a1fc8931014.tar.gz
pleroma-e4804137b3b5d269515bc40b9f173a1fc8931014.zip
Document database default changes
-rw-r--r--CHANGELOG.md1
-rw-r--r--docs/installation/otp_en.md9
2 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 08bb7e1c7..ea72de896 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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>
diff --git a/docs/installation/otp_en.md b/docs/installation/otp_en.md
index aab5197a2..32551f7b6 100644
--- a/docs/installation/otp_en.md
+++ b/docs/installation/otp_en.md
@@ -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