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 1iv1vv-00053o-Ai for pgsql-general@arkaria.postgresql.org; Fri, 24 Jan 2020 16:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iv1vt-0007ql-ER for pgsql-general@arkaria.postgresql.org; Fri, 24 Jan 2020 16:35:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iv1vt-0007qe-10 for pgsql-general@lists.postgresql.org; Fri, 24 Jan 2020 16:35:45 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iv1vq-0007Rm-Kt for pgsql-general@postgresql.org; Fri, 24 Jan 2020 16:35:43 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0495D21C7A; Fri, 24 Jan 2020 11:35:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 24 Jan 2020 11:35:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=x X6XigG6fW0cETIFbky/2Iet3hb08sTPbKgesPTcUD0=; b=QIDWJfH/cdwXwxazb l+Hg/SRzjK209LGaIpiGekmlK7CKtokMiKixdsvIWXjGnbYME5kOTZ7uAw+BqzhB 8gFNzgQTT8jOohd8IWW9gEU+kcjC7x4g1ickLaI9I+aq0Kd9BKtN24/P4F6323dC p9FfYEZ4/Hob+yIpFMUGQpS42VSDwZUxigMn7Qun/K+Yf8kvnMP6GUi+uUeq2FvO 5Qbssvi5SvmFghNgiywf0ZchE0zfiux8wc2xihZDgIyY5nruJTxJm8NHGQkWOhD0 BVdjBFJFgUbLzjoQWVUfeQ8Uvz0CfGVo/XQAyJPh4dXElfgAcltI++93jDpUAcib E2NHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=xX6XigG6fW0cETIFbky/2Iet3hb08sTPbKgesPTcU D0=; b=Z+juQYBdMD8AxAhV01u2iFj3bUVlaZy4JAteWmWlXU14jMvvmxFCZiss3 SrygCgsVpaM7DeaJEDtTzBZlnYdxKzBISxBGtzbL/HvfdWS44Q3QJmZPiQ8/joqb 8gmXAj4rddhMXbN0DknVs+k85tqIwsk1FLx6FIqyryXGDkpIseZn/qHJ3fMdAwfe GZYqRbySCEWmIU25CkDZHNNDcTaNDe1UchNS5SigHXEb/63RhZ/t1zAKvQxvzfrr Yfrf+7AKxD+HTdF/sBySwLXH4MLwv8F4QxfaV4ui5heVhKWUZXyq2REi0MikKDA0 nhWgxWwKAh3s1jJ342vxHCJFFcm2Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvdeggdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeejuddrvdduvddruddvledrudelfeenucevlhhushhtvghrufhiiigvpedu necurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrg hvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E5323280060; Fri, 24 Jan 2020 11:35:41 -0500 (EST) Subject: Re: Clarification of documentation detail for upgrading minor version To: Phil Fisher Cc: pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <2e3f8338-a44c-b6c3-35f0-8e025f3afc8b@aklaver.com> Date: Fri, 24 Jan 2020 08:35:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/24/20 6:40 AM, Phil Fisher wrote: > Thanks to Adrian I have managed to get around this issue. Essentially > I had to go old school and create a tar archive of the install on > another comparable system, copy that around and then install via an > untar. (the repo access was not available as it is a server behind > many FW and in a secure vDatacentre). So did you copy a RHEL repo install or a PGDG repo one? > The one issue I ended up with (since the system runs under systemd) > was that the directory /var/run/postgresql did not exist for some > reason and I had to create it as when I tried to restart it there was > a failure message. I am not sure if that was an artefact from moving > from 9.6.6 to 9.6.16 or not but I mention it in case someone has a > similar issue when starting up after the "upgrade". > > Phil > > On Thu, 23 Jan 2020 at 15:46, Adrian Klaver wrote: >> >> On 1/23/20 3:28 AM, Phil Fisher wrote: >>> Hello >>> >>> I have a 9.6.6 system that misses some features. It is installed on a >>> RHEL7 OS. Reading the 9.6 documentation to upgrade I find the >>> following: >>> >>> " >>> >>> 18.6. Upgrading a PostgreSQL Cluster >>> >>> This section discusses how to upgrade your database data from one >>> PostgreSQL release to a newer one. >>> >>> PostgreSQL major versions are represented by the first two digit >>> groups of the version number, e.g., 8.4. PostgreSQL minor versions are >>> represented by the third group of version digits, e.g., 8.4.2 is the >>> second minor release of 8.4. Minor releases never change the internal >>> storage format and are always compatible with earlier and later minor >>> releases of the same major version number, e.g., 8.4.2 is compatible >>> with 8.4, 8.4.1 and 8.4.6. To update between compatible versions, you >>> simply replace the executables while the server is down and restart >>> the server. The data directory remains unchanged — minor upgrades are >>> that simple." >>> >>> Can someone please clarify what actions should be taken for this (see >>> penultimate sentence)? If I install (yum upgrade for example) then I >>> believe all updated files will be updated and that does not seem to be >>> the message in the above. While I can install to a different area >>> (and since I will be using the PGDG repo it WILL be different) I could >> >> Are you currently using the PGDG repos? >> >> If so then the files will be installed in the same locations. They will >> just be the new versions. >> >>> do this and manually copy the 'bin' directory. However, I would have >>> expected to have to copy the 'libs' directory as well and perhaps >>> others (excluding doc etc.). I will be moving to a 9.6.16 version so >>> that seems to comply with the restrictions mentioned in the >>> documentation (and for the avoidance of good people saying use a later >>> version and do a major upgrade that is not currently >>> possible/feasible). >>> >>> Grateful for any detailed advice on the correct path for the above. >>> Thanks. >>> >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com > > > -- Adrian Klaver adrian.klaver@aklaver.com