Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] postmaster crash and .s.pgsql file

From: James Hughes <jamesh(at)interpath(dot)com>
To: Andrew Martin <martin(at)biochemistry(dot)ucl(dot)ac(dot)uk>
Cc: The Hermit Hacker <scrappy(at)hub(dot)org>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] postmaster crash and .s.pgsql file
Date: 1998-01-29 14:57:01
Message-ID: Pine.LNX.3.93.980129094110.6881A-100000@xport.bluewall.com (view raw or flat)
Thread:
Lists: pgsql-hackers

On Thu, 29 Jan 1998, Andrew Martin wrote:

: > On Thu, 29 Jan 1998, Andrew Martin wrote:
: > 
: > > >    > I would opt for /var/run to store the pid files and have the name set to
: > > > 
: > > > 	   That would assume that postmaster runs as root, which is not
: > > >    allowed...has to be in /tmp somewhere
: > > > 
: > > > Maybe both should be under /usr/local/pgsql
: > > I assume you mean the root of the installation rather than specifically
: > > /usr/local/pgsql.
: > > 
: > > > somewhere, so they will not be removed by any 
: > > > '/tmp'-clean-up-scripts.
: > > > 
: > > In $PGDATA would seem as good as anywhere (maybe $PGDATA/.run or some such)
: > > 
: > > /usr/local is mounted r/o on my system - $PGDATA lives elsewhere and is
: > > writable.
: > 
: > 	$PGDATA is created 700...general users need to be able to read the
: > directory in order to connect to the socket, so we'd have to lax up
: > security in order to accomplish this...
: > 
: OK, no problem, a subdirectory of $PGDATA which has world read permission
: 

I think $PGDATA would be a problem. I did an initdb to my directory and
ran a postmaster on port 5440 with $PGDATA pointing to my home
directory. This postmaster never saw the main postmaster's $PGDATA
directory. All postmasters should use the same location to get
information about processes running. It wouldn't matter where, as long
as the location is flexible and easily configured.

All this raises other questions for me. I believe Goran was right about
the can of worms :)



-James


In response to

pgsql-hackers by date

Next:From: Alexander V. GoncharukDate: 1998-01-29 14:57:52
Subject: (no subject)
Previous:From: The Hermit HackerDate: 1998-01-29 14:52:27
Subject: Re: [HACKERS] postmaster crash and .s.pgsql file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group