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 1iQ2zk-0008Jk-HK for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2019 05:27:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iQ2zi-0007Mz-WF for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2019 05:27:39 +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 1iQ2zi-0007Mr-HU for pgsql-general@lists.postgresql.org; Thu, 31 Oct 2019 05:27:38 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQ2zf-0005xZ-O3 for pgsql-general@postgresql.org; Thu, 31 Oct 2019 05:27:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Reply-To:References:Cc:To:Subject; bh=8urXunDCND40zlhLh4nG4pEaByoSqU6+gfpBtE5vchA=; b=I1NsEMp+5IphdjZqYB3es7NV8yzIH/jAacM4z0Wx+KckgcJzC4YeKQ2y/zPzxc2+i9pNbBcYopzH9dT/d+pp99CschtcDW5pe8l80FXcOWLBXH/Flmy5dGfSs9H4R3BeB3/j13OVPg5DceCx0LX4nzAVrH0UrJe+pjSLpR3kORE=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1iQ2zd-0005zt-5D; Thu, 31 Oct 2019 08:27:33 +0300 Subject: Re: Upgrade procedure To: Kevin Brannen Cc: pgsql-general General References: <4a1d7863-2ee5-cf9d-111c-0945781818f8@mail.ru> Reply-To: rihad From: rihad Message-ID: <1aa84860-22f1-e85e-02a2-71b1d6a27e46@mail.ru> Date: Thu, 31 Oct 2019 09:27:29 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 3FFC80838138E3AB5A78504BD2AC2941D17692948FC599FB1F2565BE66809D65ECF89BCF08CFC26CD7F7E1BF0B26ABF5 X-7FA49CB5: 0D63561A33F958A5DF3A9D03AC2A9FEC19BE8F2E7C88331703DA310AB2E2DC268941B15DA834481FA18204E546F3947CC2B5EEE3591E0D35F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BECADA55FE5B58BB7A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249A64C4E77951A82EE76E601842F6C81A12EF20D2F80756B5F5C318D1F9ECD513A76E601842F6C81A127C277FBC8AE2E8BFCB6192C5142207C3AA81AA40904B5D99449624AB7ADAF37F910319684D6E05D725E5C173C3A84C3CE9959E2676FD877123A64E4C26FD960262FEC7FBD7D1F5BB5C8C57E37DE458B4C7702A67D5C3316FA3894348FB808DBEB6346B700B4D54FE5BFE6E7EFDEDCD789D4C264860C145E X-Mailru-Sender: B19AB4DAF1EA2FB576419B236939FC8D3E577CD43E534E9C91AF773AAE63800D0840CAA66A03E50EABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > >From: rihad > >> 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).