Problem with threads in Solaris 8

From: Tomas Berndtsson <tomas(at)nocrew(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem with threads in Solaris 8
Date: 2001-11-06 16:03:02
Message-ID: 80k7x399ah.fsf@junk.nocrew.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a strange problem when using PostgreSQL in my multithreaded
(using pthreads) application under Solaris/SPARC 8. I use PostgreSQL
7.1.3. My program has 7 different threads, each connecting to the same
database in PostgreSQL. It works most of the times, but sometimes,
connecting fails with this:

error=connectDBStart() -- connect() failed: Inappropriate ioctl for device
Is the postmaster running (with -i) at 'localhost'
and accepting connections on TCP/IP port 5432?

PostgreSQL is accepting TCP/IP on port 5432, since it does work
sometimes. The errno message (Inappropriate ioctl for device) is not
always the same.

With the same version of PostgreSQL and my program, running in Linux,
everything always works as it should.

I have edited /etc/system to raise the shared memory variables, so
that's not the problem.

Has anyone else seen this in Solaris? I have no idea how I can find
out more about it, or what to do to avoid it.

Please help,

Tomas

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2001-11-06 16:20:37 Re: Probably simple answer
Previous Message Jelle Ouwerkerk 2001-11-06 15:53:44 Re: data integrity (fwd)