powa-team / powa

PostgreSQL Workload Analyzer
http://powa.readthedocs.io/
PostgreSQL License
778 stars 57 forks source link

Be more explicit that root is needed, may trouble some users #22

Closed rodo closed 10 years ago

marco44 commented 10 years ago

You don't HAVE to be root. But you may, especially if you are using a package. You could have compiled postgres by yourself, and then you would only need to do this make install as this user. In this case, sudoing as root may even be a bad idea ?

marco44 commented 10 years ago

But still, I can see your point. We should at least mention that there may be permission problems, and that make install should be done with a special user.

rjuju commented 10 years ago

+1 Most of production environments require root privilege. And I assume that people who compile their own postgres can for sure understand why they don't need root privilege :)

rodo commented 10 years ago

@marco44 indeed the make install doesn't work as is if your not root, make install will create directories that are owned by root in many distributions. I compiled in my home as usual :-)

marco44 commented 10 years ago

I've committed a modified version of your patch. Tell me if you're ok with it…

rodo commented 10 years ago

@marco44 it's perfect, thanks for all future users who won't miss to su :-)