From: Олег Самойлов <splarv@ya.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL lock file
Date: Mon, 12 Aug 2019 14:47:32 +0300
Message-ID: <9C1CF14F-DBB7-4AF1-A42D-28B4ADFF0556@ya.ru> (raw)
In-Reply-To: <4820.1565361116@sss.pgh.pa.us>
References: <3E45AB93-A701-485D-9E46-44EEB7D04662@ya.ru>
<4820.1565361116@sss.pgh.pa.us>
> 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.
>
> 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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: splarv@ya.ru, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL lock file
In-Reply-To: <9C1CF14F-DBB7-4AF1-A42D-28B4ADFF0556@ya.ru>
References: <3E45AB93-A701-485D-9E46-44EEB7D04662@ya.ru> <4820.1565361116@sss.pgh.pa.us> <9C1CF14F-DBB7-4AF1-A42D-28B4ADFF0556@ya.ru>
* 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