timescale / timescaledb-tune

A tool for tuning TimescaleDB for better performance by adjusting settings to match your system's CPU and memory resources.
https://www.timescale.com/
Apache License 2.0
444 stars 40 forks source link

Don't require exactly one space before or after = #103

Closed arp242 closed 2 years ago

arp242 commented 2 years ago

My postgresql.conf looks like this:

checkpoint_timeout = 30min   # Max. time between checkpoints; Default: 5min
max_wal_size       = 4GB     # Default: 1G
min_wal_size       = 256MB   # Default: 80M

It would fail to detect these keys as the tuneRegexFmt and tuneRegexQuotedFmt require exactly " = "; this changes that to "\s=\s" to accept any whitespace. It doesn't make any effort to write these spaces back – might be nice too, but I couldn't be bothered 😅

Also use ` for these strings so you don't need to double up the backslashes.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.