Jay R <jaysjaded@yahoo.com> writes:
> I've installed 7.3 in its own directory, using the
> default configuration parameters, and I gather from
> the 7.3 documentation that I need to start it up on a
> different port and provide a different socket to point
> DBI::Pg at. (7.2 has port 5432 and a socket in /tmp)
> But I couldn't figure out quite how to do it, based
> on the documentation.
Use "-D dir" or set $PGDATA to point initdb at a nonstandard data
directory. Then start the new postmaster with the same switch or
environment, plus a "-p port" switch (or instead of -p, set the port
number in postgresql.conf).
Client-side code will also need to be pointed at that port. If you were
using libpq-derived code you could handle this transparently by setting
$PGPORT in the client ennvironment, but I forget whether that works for
DBI::Pg.
regards, tom lane