Skip to content

Commit

Permalink
Improved tune page for latest PgTune
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 4, 2024
1 parent bef01d1 commit bacbd78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.4.1 (unreleased)

- Improved tune page for latest PgTune

## 3.4.0 (2023-11-28)

- Added support for explaining normalized queries with Postgres 16
Expand Down
9 changes: 8 additions & 1 deletion lib/pghero/methods/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ module Methods
module Settings
def settings
names =
if server_version_num >= 90500
if server_version_num >= 100000
%i(
max_connections shared_buffers effective_cache_size maintenance_work_mem
checkpoint_completion_target wal_buffers default_statistics_target
random_page_cost effective_io_concurrency work_mem huge_pages
min_wal_size max_wal_size
)
elsif server_version_num >= 90500
%i(
max_connections shared_buffers effective_cache_size work_mem
maintenance_work_mem min_wal_size max_wal_size checkpoint_completion_target
Expand Down

0 comments on commit bacbd78

Please sign in to comment.