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 1iS3Gx-0000rD-28 for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 18:09:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iS3Gv-0006ng-LL for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 18:09:41 +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 1iS3Gv-0006nY-BY for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2019 18:09:41 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS3Gr-0002qM-5j for pgsql-general@postgresql.org; Tue, 05 Nov 2019 18:09:40 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id C72D9262E38 for ; Tue, 5 Nov 2019 10:09:33 -0800 (PST) Date: Tue, 5 Nov 2019 10:09:33 -0800 (PST) From: Rich Shepard To: pgsql-general General Subject: RE: Upgrade procedure In-Reply-To: Message-ID: References: <4a1d7863-2ee5-cf9d-111c-0945781818f8@mail.ru> <1aa84860-22f1-e85e-02a2-71b1d6a27e46@mail.ru> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 5 Nov 2019, Kevin Brannen wrote: > The manual or others here are more knowledgeable than I, but I believe that > for a "minor" upgrade, you can just swap out the code and restart PG. For > major upgrades, the PG server is going to have to come down as the underlying > files might be changed/transformed during the upgrade, ... Files might change even with a minor upgrade. The few seconds it takes to stop, upgrade, and restart the system prevents all errors due to someone/something accessing the database while it's being upgraded. Rich