]> Untitled Git - lemmy.git/commitdiff
Add postgres auto-explain for dev testing. (#2399)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 16 Aug 2022 12:22:29 +0000 (08:22 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Aug 2022 12:22:29 +0000 (12:22 +0000)
* Add postgres auto-explain for dev testing.

* add newline

* fix indent

Co-authored-by: Nutomic <me@nutomic.com>
docker/dev/docker-compose.yml

index 17787171ee57c5268189051e494a5e1f7e12212b..42e8afa90d1c888e5e5b781081f0aaa5b63d7e7e 100644 (file)
@@ -50,6 +50,7 @@ services:
     volumes:
       - ./volumes/postgres:/var/lib/postgresql/data
     restart: always
+    command: ["postgres", "-c", "session_preload_libraries=auto_explain", "-c", "auto_explain.log_min_duration=5ms", "-c", "auto_explain.log_analyze=true"]
 
   pictrs:
     image: asonix/pictrs:0.3.1