Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrHwG-00039r-Ku for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 10:29:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrHwE-0005lc-Ir for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 10:29:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrHwE-0005lU-Ax for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 10:29:26 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrHw7-0005C4-13 for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 10:29:24 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 16C83FF803; Thu, 10 Jun 2021 10:29:14 +0000 (UTC) Subject: Re: AWS forcing PG upgrade from v9.6 a disaster To: "Dean Gibson (DB Administrator)" , pgsql-performance@lists.postgresql.org References: <88dec70b-eb63-0b72-0b5d-253851ef127b@mailpen.com> <92cc8563-195f-8727-d887-5f2bb63f231f@mailpen.com> <20210601041635.GQ2082@telsasoft.com> From: Andrew Dunstan Message-ID: <18f77a0c-dade-b86a-cbeb-6f85d3d137e1@dunslane.net> Date: Thu, 10 Jun 2021 06:29:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/9/21 9:50 PM, Dean Gibson (DB Administrator) wrote: > Having now successfully migrated from PostgreSQL v9.6 to v13.2 in > Amazon RDS, I wondered, why I am paying AWS for an RDS-based version, > when I was forced by their POLICY to go through the effort I did?  I'm > not one of the crowd who thinks, "It works OK, so I don't update > anything".  I'm usually one who is VERY quick to apply upgrades, > especially when there is a fallback ability.  However, the initial > failure to successfully upgrade from v9.6 to any more recent major > version, put me in a time-limited box that I really don't like to be in. > > If I'm going to have to deal with maintenance issues, like I easily > did when I ran native PostgreSQL, why not go back to that?  So, I've > ported my database back to native PostgreSQL v13.3 on an AWS EC2 > instance.  It looks like I will save about 40% of the cost, which is > in accord with this article:  > https://www.iobasis.com/Strategies-to-reduce-Amazon-RDS-Costs/ > > Why am I mentioning this here?  Because there were minor issues & > benefits in porting back to native PostgreSQL, that may be of interest > here: > > First, pg_dumpall (v13.3) errors out, because on RDS, you cannot be a > superuser, & it tries to dump protected stuff.  If there is a way > around that, I'd like to know it, even though it's not an issue now.  > pg_dump works OK, but of course you don't get the roles dumped.  > Fortunately, I kept script files that have all the database setup, so > I just ran them to create all the relationships, & then used the > pg_dump output.  Worked flawlessly. This was added in release 12 specifically with RDS in mind:    pg_dumpall --exclude-database cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com