Re: Database server crash ! URGENT !

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sunit Bhatia" <sunit_bhatia(at)hotmail(dot)com>
Cc: doug(at)wireboard(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Database server crash ! URGENT !
Date: 2001-11-16 07:57:32
Message-ID: 24821.1005897452@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Sunit Bhatia" <sunit_bhatia(at)hotmail(dot)com> writes:
> I've narrowed down the problem. Here is what I did:
> As suggested by everybody, I started the server like this:

> su - pgsql -c "nohup $DB_ROOT/bin/postmaster -B 50 -N 25 -D$DB_ROOT/data
> -i" </dev/null >>$LOGFILE 2>&1 </dev/null &

Not sure, but maybe the correct spelling is

su - pgsql -c "nohup $DB_ROOT/bin/postmaster -B 50 -N 25 -D$DB_ROOT/data
-i </dev/null >>$LOGFILE 2>&1" &

As is, you're redirecting the stdin etc of su, not of the
eventually-launched shell that execs the postmaster. I don't know if
that's the problem, but it seems unlikely to be a good idea.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Antonio Fiol Bonnín 2001-11-16 08:25:09 Re: spectral datasets in postgresql
Previous Message Tom Lane 2001-11-16 07:50:35 Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...