Skip to content

Commit

Permalink
feat(ci): Enable PostreSQL extension pg_trgm (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Feb 28, 2025
1 parent 7a506b3 commit 4dce375
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .azure/modules/postgreSql/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,23 @@ resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = {
tags: tags
}

resource enable_extensions 'Microsoft.DBforPostgreSQL/flexibleServers/configurations@2024-08-01' = {
parent: postgres
name: 'azure.extensions'
properties: {
value: 'PG_TRGM'
source: 'user-override'
}
}

resource track_io_timing 'Microsoft.DBforPostgreSQL/flexibleServers/configurations@2024-08-01' = if (enableQueryPerformanceInsight) {
parent: postgres
name: 'track_io_timing'
properties: {
value: 'on'
source: 'user-override'
}
dependsOn: [enable_extensions]
}

resource pg_qs_query_capture_mode 'Microsoft.DBforPostgreSQL/flexibleServers/configurations@2024-08-01' = if (enableQueryPerformanceInsight) {
Expand Down

0 comments on commit 4dce375

Please sign in to comment.