From: Greg Smith <greg@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: xsun <xu2002261@163.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: The function of lock file named ".s.PGSQL.<port>.lock" on Linux?
Date: Tue, 10 Aug 2010 20:51:11 -0400
Message-ID: <4C61F3FF.1080303@2ndquadrant.com> (raw)
In-Reply-To: <16464.1281026474@sss.pgh.pa.us>
References: <i399mq$28vn$1@news.hub.org>
<16464.1281026474@sss.pgh.pa.us>
Tom Lane wrote:
> We can't portably lock the socket file itself, so we make a separate
> ordinary file for locking purposes.
>
It looks to me like the fact that the .lock file is created is only
documented in src/backend/utils/init/miscinit.c , and even there the
reason why (what you wrote above) isn't mentioned. Seems like noting
this file is created in the unix_socket_directory entry of the docs, and
the rationale for why in the source code, would make a useful
improvement. Anybody want to write a little documentation patch?
--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com www.2ndQuadrant.us
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: greg@2ndquadrant.com, tgl@sss.pgh.pa.us, xu2002261@163.com
Subject: Re: The function of lock file named ".s.PGSQL.<port>.lock" on Linux?
In-Reply-To: <4C61F3FF.1080303@2ndquadrant.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