From: rihad <rihad@mail.ru>
To: Kevin Brannen <KBrannen@efji.com>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Upgrade procedure
Date: Thu, 31 Oct 2019 09:27:29 +0400
Message-ID: <1aa84860-22f1-e85e-02a2-71b1d6a27e46@mail.ru> (raw)
In-Reply-To: <CA+bJJbz3+fbRTs7NRSKcqe8Kfyv7t2rZrW-o9vQS6Q27KkeNCQ@mail.gmail.com>
References: <4a1d7863-2ee5-cf9d-111c-0945781818f8@mail.ru>
<CA+bJJbz3+fbRTs7NRSKcqe8Kfyv7t2rZrW-o9vQS6Q27KkeNCQ@mail.gmail.com>
> >From: rihad <rihad(at)mail(dot)ru>
>
>> Hi, all. Why is it normally suggested to stop the server, upgrade it,
>> then start it? Wouldn't it be easier & quicker to simply upgrade the
>> package in-place and restart the service? On OSen that allow
>> modification of currently running binaries, which is most Unix OS, M$
>> Windows being a notable exception )
>>
> That might be possible on a minor upgrade, but quite probably not on a
> major version upgrade. I'm reasonably sure I've read that a major
> upgrade *can* change underlying data/structures for tables and other
> things. I don't think you want version-X writing to the tables on disk
> while version-Y writes a new layout to the same files at the same
> time. 😊
>
>
Why would that matter if the server gets restarted after replacing the
binaries? Aren't previous version's binaries "hard-wired" into memory
while they are running? AFAIK on FreeBSD at least no attempt is made to
stop the corresponding server or restart it when a package is upgraded
by pkg(8).
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: rihad@mail.ru, KBrannen@efji.com
Subject: Re: Upgrade procedure
In-Reply-To: <1aa84860-22f1-e85e-02a2-71b1d6a27e46@mail.ru>
References: <4a1d7863-2ee5-cf9d-111c-0945781818f8@mail.ru> <CA+bJJbz3+fbRTs7NRSKcqe8Kfyv7t2rZrW-o9vQS6Q27KkeNCQ@mail.gmail.com> <1aa84860-22f1-e85e-02a2-71b1d6a27e46@mail.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