pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Balaji Kasthurirangan <kasthurirangan.balaji@gmail.com>
To: pgsql-admin@postgresql.org
Subject: could not bind IPv4 socket
Date: Tue, 29 Apr 2008 08:53:39 -0500
Message-ID: <92db61c20804290653x1a6eef5u4ee33fa9bfa01de9@mail.gmail.com> (raw)

Hi,

I downloaded the latest version 8.3.1 and compiled it using gmake. I
followed the instructions in INSTALL file. The installation was fine and
when i try to start the server i get the following error message

LOG: could not bind IPv4 socket: Can't assign requested address
HINT: Is another postmaster already running on port 5432? If not, wait a few
seconds and retry
WARNING: could not create listen socket for "localhost"
FATAL: could not create any TCP/IP sockets

I am using FreeBSD6.1. I tried for this error message in archives, but in
vain.

Out of curiosity, i looked at the code and it looks like the message is from
pqcomm.c. And exactly before this error in the file, comments say that the
bind might fail on older linux systems....
One thought was to change the pqcomm.c and print the errno and other related
details. But this would need building the server again.

This is my first stint with PostgreSQL. Also, i had to download and install
since the ports were old.

Thanks,
Balaji.

view thread (3+ messages)  latest in thread

Message-ID: <92db61c20804290653x1a6eef5u4ee33fa9bfa01de9@mail.gmail.com>
Permalink:  ../92db61c20804290653x1a6eef5u4ee33fa9bfa01de9@mail.gmail.com/
Also on:    postgresql.org/message-id/92db61c20804290653x1a6eef5u4ee33fa9bfa01de9@mail.gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: kasthurirangan.balaji@gmail.com
  Subject: Re: could not bind IPv4 socket
  In-Reply-To: <92db61c20804290653x1a6eef5u4ee33fa9bfa01de9@mail.gmail.com>

* 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