I would like to point the PostgreSQL server to a particular non-default data directory upon startup. Right now, I have to (either manually or in a script) use pg_ctl to stop and restart the database with my /new/path/to/data
.
OS is Ubuntu where the default data directory is /var/lib/postgresql/8.4/main