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
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion tembo-stacks/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tembo-stacks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tembo-stacks"
description = "Tembo Stacks for Postgres"
version = "0.3.10"
version = "0.3.11"
authors = ["tembo.io"]
edition = "2021"
license = "Apache-2.0"
Expand Down
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