Closed conscribtor closed 5 months ago
Hi @conscribtor , Thanks for your work. I think this change need more discussions, but i definitively think that you should ensure backward compatibility. We doesn't provide default configuration template for many reasons, most of them I don't know very well but you can check on olders PR / issues. People here can certainly give you much more information about the reasons of all theses changes. As you probably seen on our recent changes, we don't test pg =< 10 anymore. @tsoulabail Can you give us your opinion about this ?
Adding a new PostgreSQL version might be a good opportunity to fix those defaults. There might be ways to include them while remaining backwards compatible.
One possibility might be to version_compare('16', '>=')
them, but use the annotations to reflect when they were originally changed upstream:
postgresql_vacuum_cost_page_miss: "{{ 2 if postgresql_version is version_compare('16', '>=') else 10 }}" # (<= 13: 10, >= 14: 2) 0-10000 credits
Let me know what you think, if i should proceed with that idea and which I should include in that way.
In 2023, the first work was to push pg14 and pg15, as quickly as possible, with in background "the backward compatibility ".
I think that your proposal to cleanup is what needs to be done.
I like the idea postgresql_vacuum_cost_page_miss: "{{ 2 if postgresql_version is version_compare('14', '>=') else 10 }}"
In 2023, the first work was to push pg14 and pg15, as quickly as possible, with in background "the backward compatibility ". I think that your proposal to cleanup is what needs to be done. I like the idea
postgresql_vacuum_cost_page_miss: "{{ 2 if postgresql_version is version_compare('14', '>=') else 10 }}"
Thank you - I've pushed the new defaults using this pattern in 556219968c85e25dad218587014f5d2853f1b101.
I close this issue, work can be seen in #564
Hello there!
I'm working in my fork on a PR to contribute a configuration update that would support PostgreSQL 16: #564 Please let me know if I'm going about it in the wrong way.
I've used the opportunity to (re)check the PostgreSQL documentation and templates for all versions greater or equal 10 and found some defaults that don't seem correct to me. However, changes to these might affect existing installations and therefore I'd be happy on some feedback before I commit and test these changes.
Should I change the defaults to be valid for versions >= 16, ensuring backwards compatibility, or should I "correct" (some are surely a matter of opinion) them to their historic defaults?