Re: pgsql password when FreeBSD boots -- what's usual?

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joel Rees <joel(at)alpsgiken(dot)gr(dot)jp>, pgsql-general(at)postgresql(dot)org
Subject: Re: pgsql password when FreeBSD boots -- what's usual?
Date: 2003-04-03 20:12:36
Message-ID: 20030403201236.GG64139@perrin.int.nxad.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > Any chance the PID filename could be hard linked to the format:
> > postmaster-%d.pid where %d is the start time of the postmaster?
>
> And then how does any program except the postmaster know which .pid
> file is the active one? There's also the little problem that this
> defeats the use of the .pid file as a data-directory lock file.

PostgreSQL writes out postmaster.pid in the data directory then
link()'s it to postmaster-%d.pid. I don't see where the problem is in
that. pg_ctl could be rewritten in C and read the startup time out of
a semaphore, but I don't know how easy it would be to get working on
boxen with multiple copies of postgres running. -sc

--
Sean Chittenden

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sean Chittenden 2003-04-03 20:18:23 Re: pgsql password when FreeBSD boots -- what's usual?
Previous Message Lonni J Friedman 2003-04-03 20:10:17 Re: unable to dump database, toast errors