Re: Postgres won't start

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres won't start
Date: 2013-08-09 00:49:27
Message-ID: 9366.1376009367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oliver Elphick <olly(at)lfix(dot)co(dot)uk> writes:
> Linux Mint (from Ubuntu) version 9.1.
> Postgres will no longer start, but I cannot find out why.

> Command line:
> $ /usr/lib/postgresql/9.1/bin/pg_ctl start -D /home/postgresql/9.1/main -l
> /var/log/postgresql/postgresql-9.1-main.log -s -w -o '-c
> config_file="/etc/postgresql/9.1/main/postgresql.conf"'
> pg_ctl: could not start server
> Examine the log output.

> There is no error message in the log:

This log file seems suspiciously incomplete. Is it the file mentioned in
the pg_ctl -l switch? If so, that file would only be used until the
syslogger process took over logging (which we know it did since we see its
exit messages in there). To find out what happened after that, you need
to look wherever your postgresql.conf is telling PG to log.

I wonder whether we shouldn't change the syslogger to emit something to
stderr when it takes over logging, saying "logging is now redirected to
<someplace>". This isn't the first case I've seen of people forgetting
to look in the right place.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brar Piening 2013-08-09 04:24:06 Re: Postgres won't start
Previous Message Sergey Konoplev 2013-08-09 00:43:31 Re: Performance of ORDER BY RANDOM to select random rows?