jfcoz / postgresqltuner

Simple script to analyse your PostgreSQL database configuration, and give tuning advice
https://postgresqltuner.pl
GNU General Public License v3.0
2.61k stars 190 forks source link

Swap '-' and '_' on line 221 to fix regex syntax #62

Closed bknowles closed 5 years ago

bknowles commented 5 years ago

Note that your line 221 has incorrect regex syntax. The "-" (dash) character needs to come at the end of the sequence, if you're going to allow it as a character within the match, as opposed to a metacharacter indicating a range.

bknowles commented 5 years ago

Note that without this change, if you specify a hostname as your postgres database instance to connect to (e.g., an AWS RDS postgres database cluster), you will get back the error message "Invalid host".

jfcoz commented 5 years ago

Thanks