Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYUQV-00GFzx-0u for pgsql-admin@arkaria.postgresql.org; Fri, 09 Feb 2024 17:12:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rYUQU-00AF4S-2y for pgsql-admin@arkaria.postgresql.org; Fri, 09 Feb 2024 17:12:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYUQS-00AF4H-Hi for pgsql-admin@lists.postgresql.org; Fri, 09 Feb 2024 17:12:33 +0000 Received: from mx0a-000e5c14.pphosted.com ([148.163.133.209]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYUQM-006KoK-Vl for pgsql-admin@lists.postgresql.org; Fri, 09 Feb 2024 17:12:31 +0000 Received: from pps.filterd (m0206225.ppops.net [127.0.0.1]) by mx0a-000e5c14.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 419ChwCw009615; Fri, 9 Feb 2024 11:12:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=express-scripts.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=pod140124231234; bh=C0BIZXcJwUbHy48RqoUwipkJnXz/wAUiNG+V2ua65e0=; b=yx84HKtnb66h2uo6jIFEA2di61ObcBJMJFQVak47zD7L2Uq72g8VGWxWiknw2X7YxfCj zzzDGpInMgZC4WUoQy8FpXCXft4L8uoLFlvwiVO6IO/PVmepwst2401M4w/UlESPD8f8 he7A9NIYY0fFRvRrGLO4XWpYEzHsMsNjt9U+POrV3dTMzXxS/PhryILeNTDe3s8r0pVU 9T6zxK2bss21MXyXm25b8feTUjeppzOcfrllghEqcoGeId81ChYDcJkWWq8Avuvn0E1w N/M3Prrb8wEvZOF6mnIHaFf70/8T9n9YuMvhldnI0no3r1tkE9plAP7TmQqggNDUkV/L 6Q== Received: from eiaappxp0006.gid.prd.globalcore.com ([170.48.0.129]) by mx0a-000e5c14.pphosted.com (PPS) with ESMTPS id 3w560astbj-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 11:12:23 -0600 Received: from cvlappxp20759.internal.cigna.com (HELO PS2PW1012185.accounts.root.corp) ([10.36.52.92]) by EIAAPPXP0006.gid.prd.globalcore.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 17:12:22 +0000 Received: from PS2PW1012186.accounts.root.corp (10.221.225.154) by PS2PW1012185.accounts.root.corp (10.221.225.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27; Fri, 9 Feb 2024 12:12:22 -0500 Received: from PS2PW1012186.accounts.root.corp ([fe80::9fec:fffb:1381:33ad]) by PS2PW1012186.accounts.root.corp ([fe80::9fec:fffb:1381:33ad%6]) with mapi id 15.02.1258.027; Fri, 9 Feb 2024 12:12:22 -0500 From: "Wetmore, Matthew (CTR)" To: David Barron , "pgsql-admin@lists.postgresql.org" Subject: RE: upgrade questions Thread-Topic: upgrade questions Thread-Index: AdpbeP7Mx96mBzV9TtutqPIoA7X5uwAAXA8Q Date: Fri, 9 Feb 2024 17:12:21 +0000 Message-ID: <7ba39497463249c78237a2d06ccca2ba@express-scripts.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.221.252.1] x-proofpoint-routing: 000e5c14 Content-Type: multipart/alternative; boundary="_000_7ba39497463249c78237a2d06ccca2baexpressscriptscom_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-09_14,2024-02-08_01,2023-05-22_02 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_7ba39497463249c78237a2d06ccca2baexpressscriptscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Since you are updating MAJOR versions, this is what I do before that to hav= e ready, just in case. (all separate files) 1. pg_dump -s 2. pg_dump -a 3. Pg_dump > *.sql (so human readable) 4. cp postgresql.conf > wherever 5. shut down pg and tar the /data dir. There's more that you can do and this is a little overkill sometimes, but i= ts easier to delete stuff you don't need after the fact, rather than say , = darn, I wish I could look at the schema. And then there's the RHEL layer. Be able to go back to orig RHEL in need of full rollback. Save off apt-get stuff (versions etc) From: David Barron Sent: Friday, February 9, 2024 9:01 AM To: pgsql-admin@lists.postgresql.org Subject: [EXTERNAL] upgrade questions I'm going to be doing an upgrade from version 11 to version 15 sometime in = the near future. I'm a bit nervous about it and I'm hoping I can get some = questions answered before I take the big step. First, I'm working on RedHat Linux servers. Second the existing install is not using the default data directory (/var/l= ib/pgsql/11/data). Because of decisions that were made before I got my han= ds on the servers the data directory is /pgdata-system/11/data. That's whe= re the pg_hba.conf and postgresql.conf are located. Third, 3 tablespaces were created, /pgdata-staging, /pgdata-prod and /pgdat= a-temp. I've got the last one setup as the location for temporary files.