Skip to content

Commit

Permalink
[CT-423] Enable nested statement statistics tracking. (dydxprotocol#64)
Browse files Browse the repository at this point in the history
* [CT-423] Enable nested statement statistics tracking.

This was critical in narrowing down the query that was slow for the attached issue.
  • Loading branch information
lcwik authored and pswies committed Feb 8, 2024
1 parent 83d8028 commit 90ef144
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions indexer/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ resource "aws_db_parameter_group" "main" {
value = "1.0" # Default is 4.
}

# Sets statistics tracking to record nested statements (such as statements
# invoked within functions).
# More details: https://www.postgresql.org/docs/12/pgstatstatements.html
parameter {
name = "pg_stat_statements.track"
value = "all" # Default is top.
}

tags = {
Name = "${var.environment}-${var.indexers[var.region].name}-db-parameter-group"
Environment = var.environment
Expand Down

0 comments on commit 90ef144

Please sign in to comment.