Re: Start problem on Linux

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David <lists(at)theflorys(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Start problem on Linux
Date: 2007-07-08 16:29:24
Message-ID: 833.1183912164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

David <lists(at)theflorys(dot)org> writes:
> First: When I restart the Ubuntu server, the Postgres instance is
> started and listens on port 5432 using ssl as requested. However, it
> does not created its postmaster.pid file in the PGDATA directory.

The postmaster will certainly not start without creating a
postmaster.pid file. What I think is happening is that you are confused
about where PGDATA is, ie, the start script has some other value for it
than you think.

> Second: If I manually stop the system and then start it (su postgres)
> using "pg_ctl start" the system starts and creates its postmaster.pid
> file correctly. However, this time port 5432 remains closed and I
> cannot connect from the outside.

Sounds like your idea of PGDATA contains different configuration files
than the start script's idea of it --- after the port number,
listen_addresses and pg_hba.conf would be the things to check.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ben Kim 2007-07-08 22:21:42 Re: replicating postgresql database to ms-sql database
Previous Message David 2007-07-08 15:36:34 Start problem on Linux