Skip to content

Commit 7721827

Browse files
committed
Merge branch 'logerrors-extension' into 'master'
fix: add logerrors extension by default to perform query and db migration analysis (#240) See merge request postgres-ai/database-lab!309
2 parents c7e4da9 + 644aa3c commit 7721827

5 files changed

+14
-6
lines changed

configs/config.example.logical_generic.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ retrieval:
247247
# In order to match production plans with Database Lab plans set parameters related to Query Planning as on production.
248248
shared_buffers: 1GB
249249
# shared_preload_libraries – copy the value from the source
250-
shared_preload_libraries: "pg_stat_statements"
250+
# Adding shared preload libraries, make sure that there are "pg_stat_statements, auto_explain, logerrors" in the list.
251+
# It is necessary to perform query and db migration analysis.
252+
shared_preload_libraries: "pg_stat_statements, auto_explain, logerrors"
251253
# work_mem and all the Query Planning parameters – copy the values from the source.
252254
# To do it, use this query:
253255
# select format($$%s = '%s'$$, name, setting)

configs/config.example.logical_rds_iam.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ retrieval:
247247
# In order to match production plans with Database Lab plans set parameters related to Query Planning as on production.
248248
shared_buffers: 1GB
249249
# shared_preload_libraries – copy the value from the source
250-
shared_preload_libraries: "pg_stat_statements"
250+
# Adding shared preload libraries, make sure that there are "pg_stat_statements, auto_explain, logerrors" in the list.
251+
# It is necessary to perform query and db migration analysis.
252+
shared_preload_libraries: "pg_stat_statements, auto_explain, logerrors"
251253
# work_mem and all the Query Planning parameters – copy the values from the source.
252254
# To do it, use this query:
253255
# select format($$%s = '%s'$$, name, setting)

configs/config.example.physical_generic.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ retrieval:
236236
shared_buffers: 1GB
237237

238238
# shared_preload_libraries – copy the value from the source
239-
shared_preload_libraries: "pg_stat_statements"
239+
# Adding shared preload libraries, make sure that there are "pg_stat_statements, auto_explain, logerrors" in the list.
240+
# It is necessary to perform query and db migration analysis.
241+
shared_preload_libraries: "pg_stat_statements, auto_explain, logerrors"
240242

241243
# work_mem and all the Query Planning parameters – copy the values from the source.
242244
# To do it, use this query:

configs/config.example.physical_walg.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ retrieval:
226226
shared_buffers: 1GB
227227

228228
# shared_preload_libraries – copy the value from the source
229-
shared_preload_libraries: "pg_stat_statements"
229+
# Adding shared preload libraries, make sure that there are "pg_stat_statements, auto_explain, logerrors" in the list.
230+
# It is necessary to perform query and db migration analysis.
231+
shared_preload_libraries: "pg_stat_statements, auto_explain, logerrors"
230232

231233
# work_mem and all the Query Planning parameters – copy the values from the source.
232234
# To do it, use this query:

configs/postgres/postgresql.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#restore_command
2020
#recovery_target_timeline
2121

22-
# Load pg_stat_statements and auto_explain for query analysis
23-
shared_preload_libraries = 'pg_stat_statements, auto_explain'
22+
# Load pg_stat_statements, auto_explain, and logerrors for query analysis
23+
shared_preload_libraries = 'pg_stat_statements, auto_explain, logerrors'
2424

2525
# Avoid running autovacuum in the "transaction ID wraparound prevention" mode
2626
autovacuum_freeze_max_age = 1000000000

0 commit comments

Comments
 (0)