andyatkinson / rideshare

Rails app for book 📚 "High Performance PostgreSQL for Rails" http://pragprog.com/titles/aapsql
http://pragprog.com/titles/aapsql
197 stars 59 forks source link

Make sh/edit_postgresql.conf.sh ready to be used as is by anyone #206

Closed knightq closed 1 month ago

knightq commented 2 months ago

In sh/edit_postgresql.conf.sh referenced on the book, the path is:

I suggest these change in order to have a script ready to be used by anyone, without any change:

${EDITOR:-vim} "$HOME/Library/Application Support/Postgres/var-16/postgresql.conf"

What do you think?

andyatkinson commented 1 month ago

Thanks @knightq. I keep some administration scripts in a separate pg_scripts repo. That file you mentioned is specific to the book, but I took your suggestions and put them in a script.

What do you think of this? https://github.com/andyatkinson/pg_scripts/pull/7

knightq commented 1 month ago

Looks even better, thank you @andyatkinson!