From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Wagner <wagner@imsd.uni-mainz.de>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: postmaster: address already in use
Date: Thu, 04 Jan 2001 02:01:24 -0500
Message-ID: <20541.978591684@sss.pgh.pa.us> (raw)
In-Reply-To: <3A5426D1.4D000AC5@imsd.uni-mainz.de>
References: <3A5426D1.4D000AC5@imsd.uni-mainz.de>
Markus Wagner <wagner@imsd.uni-mainz.de> writes:
> my postmaster suddenly begins to make problems. It was running fine, but
> then:
> FATAL: StreamServerPort: bind() failed: Address already in use
> Is another postmaster already running on that port?
> If not, remove socket node (/tmp/.s.PGSQL.5432) and retry.
> /sys/svr/pgs/bin/postmaster: cannot create UNIX stream port
> There is no other postmaster running and there is no socket node file in
> /tmp
That's really weird. Is it possible that there are still some old
clients holding open connections on that socket address, even though
you shut down the old postmaster?
For INET sockets, there's a timeout in many kernels, such that the
address that had been used for an INET socket is considered "in use"
for a few minutes after you close the socket. I've never heard of
any similar behavior for Unix sockets, however. Ideas anyone?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, wagner@imsd.uni-mainz.de
Subject: Re: postmaster: address already in use
In-Reply-To: <20541.978591684@sss.pgh.pa.us>
References: <3A5426D1.4D000AC5@imsd.uni-mainz.de> <20541.978591684@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox