7
votes
2answers
1k views

How do I set which PostgreSQL version is to be used by default?

I have 2 different versions of PostgreSQL installed on my system (Ubuntu Lucid): /var/lib/postgresql/8.4 /var/lib/postgresql/9.0 By default, when I run a PostgreSQL command such as createdb or ...
0
votes
0answers
1k views

Pgagent startup script (under the postgres user) [closed]

I'm trying to make a clean startup script for pgagent I found one here that use start-stop-daemon : if start-stop-daemon --start --quiet --pidfile /var/run/pgagent.pid \ --exec /usr/bin/pgagent ...