It looks like the .profile and /etc/profile were overriding the -D option.
I set the profile to this:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/pgsql/bin
MANPATH=:/usr/local/pgsql/bin
PGLIB=/usr/local/pgsql/lib
# note: PGDATA overwrites the -D startup option
# PGDATA=/usr/loca
> Subject: Re: [GENERAL] Multiple Postgres Instances
>
> David Giffin wrote:
> >
> > Hello,
> >
> > I'm trying to run postgres on two different post 5432 and port 5433 with
> > different data directories for each instance:
> >
> > [ -x /usr/l
David Giffin wrote:
>
> Hello,
>
> I'm trying to run postgres on two different post 5432 and port 5433 with
> different data directories for each instance:
>
> [ -x /usr/local/pgsql/bin/postmaster ] && {
> su -l postgres -c '/usr/local/pgsql/bin/postmaster -S -i'
> echo -n ' pgs