Re: Unix Domain Sockets error (was Re: [HACKERS] Alpha initdb fixed!) - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: Unix Domain Sockets error (was Re: [HACKERS] Alpha initdb fixed!)
Date
Msg-id Pine.NEB.3.95.980317113158.1073A-100000@hub.org
Whole thread Raw
In response to Re: Unix Domain Sockets error (was Re: [HACKERS] Alpha initdb fixed!)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
On Tue, 17 Mar 1998, Bruce Momjian wrote:

> > I've done more tests. The problem is that if you start the postmaster
> > without the '-p' option and without assigning a value to the PGPORT
> > environment variable, then all the ipc stuff is messed up. No shared
> > memory regions are created, and the semaphores are created but never
> > freed. When a port number is specified, the sempahores (and the shared
> > memory regions) have a 'key' value that contains the port number. Without
> > port number, there is no shared memory and the sempahores have 0 as the
> > key value.
> >
> > I don't know if this behaviour is due to the use of a non-standard port
> > (5440), but since it's been specified in configure (--with-pgport=5440) it
> > should work. shouldn't it?
> >
> > These are the regression tests when a port number is specified (note that
> > you *must* assign a value to PGPORT before running the tests):
>
> Let's get a patch for this alpha fix.  Not sure about the pgport problem.

    The pgport problem, I *think*, is the one that was configure
related, where the port is set wrong by default.

    Try this:

Index: pgsql/src/configure
===================================================================
RCS file: /usr/local/cvsroot/pgsql/src/configure,v
retrieving revision 1.132
retrieving revision 1.134
diff -r1.132 -r1.134
811c811
< #define DEF_PGPORT "${DEF_PGPORT}"
---
> #define DEF_PGPORT "${withval}"



pgsql-hackers by date:

Previous
From: Dwayne Bailey
Date:
Subject: Re: Unix Domain Sockets error (was Re: [HACKERS] Alpha initdb fixed!)
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Re: [PATCHES] patches for 6.2.1p6