grayhemp / pgtoolkit

Tools for PostgreSQL maintenance
Other
184 stars 16 forks source link

Remove requirement to set env variables #1

Closed ghost closed 10 years ago

ghost commented 10 years ago

If user would use pgcompact from cloned repo, script can find its own libraries.

This is done by getting path to script, traversing to parent directory, and then to lib directory.

WIth this patch, in common scenario, there is no need to adding additional options, or env variables, and it will just work.

This might make fatpack version obsolete.

grayhemp commented 10 years ago

Thank you @depesz, it is very useful.

grayhemp commented 10 years ago

However, the fatpack version is here for a slightly different purpose. Sometimes it is not possible to git clone or svn checkout the repo on the server, or it doesn't even have an internet access, or it requires a lot of negotiations with admins or security guys, or you don't have an access to the server at all and acting through a non-technical guy, etc. And in the most cases you don't have a time to settle all this stuff down, you need to do something instantly. For this cases the fatpacked scripts I think is the best option.