Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx8ng-0005hp-64 for pgsql-general@arkaria.postgresql.org; Mon, 12 Aug 2019 11:47:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hx8ne-0000v2-Q5 for pgsql-general@arkaria.postgresql.org; Mon, 12 Aug 2019 11:47:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx8ne-0000rW-B1 for pgsql-general@lists.postgresql.org; Mon, 12 Aug 2019 11:47:42 +0000 Received: from forward105j.mail.yandex.net ([5.45.198.248]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx8nX-0000Oj-Rp for pgsql-general@postgresql.org; Mon, 12 Aug 2019 11:47:41 +0000 Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward105j.mail.yandex.net (Yandex) with ESMTP id B3733B21226; Mon, 12 Aug 2019 14:47:33 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id aCrjInB6Wb-lX9eLVSF; Mon, 12 Aug 2019 14:47:33 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1565610453; bh=K9+5aSVpVcj3VIztPXJt1gN7XzT+da4srKPGGPJk2oM=; h=To:In-Reply-To:From:Subject:Cc:References:Date:Message-Id; b=byFaMjsG856HlfWCdzvI8HJNrcjEn96djSgNOkXmSKYned+RvM/0o2JqqCKQLsxKP QNbRpncZLLJp9RPV3sauKnFPQ6bgIqdKJ25aABFFskNlibKMNlDIwydoGP/y10f362 i3pyrXDcZ9y45RSb15LJqQ7rjry6I0m/hDiN9Hms= Authentication-Results: mxback15g.mail.yandex.net; dkim=pass header.i=@ya.ru Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0wTv8pIqYz-lWrmaVBe; Mon, 12 Aug 2019 14:47:32 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: PostgreSQL lock file From: =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= In-Reply-To: <4820.1565361116@sss.pgh.pa.us> Date: Mon, 12 Aug 2019 14:47:32 +0300 Cc: PostgreSQL mailing lists Content-Transfer-Encoding: quoted-printable Message-Id: <9C1CF14F-DBB7-4AF1-A42D-28B4ADFF0556@ya.ru> References: <3E45AB93-A701-485D-9E46-44EEB7D04662@ya.ru> <4820.1565361116@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > Best practice for this sort of thing is considered to be to run the = two > Postgres instances under different user IDs. That avoids them = thinking > that the other one's lock files are relevant, and it provides an extra > layer of security against possible conflicts between the two = instances. >=20 > regards, tom lane Thanks, an interesting notice. I already did changes in start script to = check instance by pg_ctl status and delete lock file if status<>0. But = your recommendation is looked better.=