Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto_explain and config values to pganalyze app #617

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion tembo-stacks/src/apps/pganalyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,32 @@ appServices:
env:
- name: DB_URL
valueFromPlatform: ReadWriteConnection

trunk_installs:
- name: auto_explain
version: 15.3.0
extensions:
- name: auto_explain
description: "Log execution plans of slow queries"
locations:
- database: postgres
enabled: true
version: 15.3.0
postgres_config:
- name: auto_explain.log_format
value: json
- name: auto_explain.log_min_duration
value: 1s
- name: auto_explain.log_analyze
value: on
- name: auto_explain.log_buffers
value: on
- name: auto_explain.log_timing
value: off
- name: auto_explain.log_triggers
value: on
- name: auto_explain.log_verbose
value: on
- name: auto_explain.log_nested_statements
value: on
- name: log_line_prefix
value: '%m [%p] %q[user=%u,app=%a] ',db=%d