Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 224AB633553 for ; Wed, 4 Aug 2010 23:50:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 22462-04 for ; Thu, 5 Aug 2010 02:50:21 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B7EEA632A2E for ; Wed, 4 Aug 2010 23:50:11 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id o752o8FF003813 for ; Wed, 4 Aug 2010 23:50:10 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id o73EdNe2074786 for pgsql-admin@postgresql.org; Tue, 3 Aug 2010 11:39:23 -0300 (ADT) (envelope-from news) From: "xsun" X-Newsgroups: pgsql.admin Subject: The function of lock file named ".s.PGSQL..lock" on Linux? Date: Tue, 3 Aug 2010 22:39:29 +0800 Organization: Hub.Org Networking Services Lines: 13 Message-ID: Reply-To: "xsun" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3664 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3664 X-RFC2646: Format=Flowed; Original To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/23 X-Sequence-Number: 35272 When the psql server is started under Linux platform, in /tmp directory there is a lock files named ".s.PGSQL..lock". So I want to know what is the function of this lock file? And does the server work well without this lock file? Additionally, I know that the file ".s.PGSQL." is used as the unix domain socket file. But the file ".s.PGSQL..lock" makes me still pazzled. Could you explain that? Thanks. Best wishes.