Skip to content

Commit

Permalink
Add auto_explain and config values to pganalyze app (#617)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <ian@tembo.io>
  • Loading branch information
ianstanton committed Mar 6, 2024
1 parent 37cc342 commit eef36b4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
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

0 comments on commit eef36b4

Please sign in to comment.