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 1lO3sg-00058H-Pn for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 19:36:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lO3sf-0006vr-0O for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 19:36:57 +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 1lO3se-0006tv-Lq for pgsql-hackers@lists.postgresql.org; Sun, 21 Mar 2021 19:36:56 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lO3sc-0008O5-GZ for pgsql-hackers@postgresql.org; Sun, 21 Mar 2021 19:36:55 +0000 Received: by mail-qt1-x830.google.com with SMTP id m7so10843165qtq.11 for ; Sun, 21 Mar 2021 12:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wi3ck-info.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=x9okpC8Ny7JoKXcDckKra4vljwxOAClG0SJQycje/SE=; b=exIefOENXNprPw/A277BcziwmnAiOCO2u6w6VpcKQCsqde6dK0FLo/PrycMHlV9/fx qmnTdOy1jWJwPZCJVeGs+qPrezv8M/hC+5HRZ4sQHzGjA1t+a4nRGWafcnvRCt9KK3rc i80d3uHP035G/fvDSKTtsXp99ofezGANwFje+1LNOGYD6SImJe5i5NqnI56o1A5qWPKJ Femau7N5MjDoTDWTdrcD14LTAuB9RBBbqliKClzbsydbXjIAY7i65XL1jirJzdPN/iKh nF+5x0fOLf3j4Bz+6Zjgs70u7qOhq846QoEndOUzyO9kiRdRBcylKV1rRyQwUQFNZYX7 hd4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x9okpC8Ny7JoKXcDckKra4vljwxOAClG0SJQycje/SE=; b=pRvJDyZJyy9qmPe3tEbz0CQAuYPJM71RpqEd4p6xFVATc1VSYx7uWE5MT8dZWBsILR sGTy2KkOEqCWcyHDH9gSTbxz4fdqowgrPwQ8uOe7+L2f8R/avbEeSJJeUZ38RVm0gMvt cDfh5taLLzPCwNucn8IG97/v+i6bFuoO8wp98AFCmQfbF3+HJk4NsM4JwxKkYuKXnmTd U2V5SZWqNWaj4GJTnTrVkaJT+Be/bYNawAVz2bSL7v4CIt98Z4sEqIqOO71/GO+3hrOd lBulTqwVGqWycMW1voVnB8y6EZKUgHIdrM3WUhblsFUXUIOAUfPR/4mwmnuGbtKQnNSu 7OMg== X-Gm-Message-State: AOAM531xkjKbYNpweL3wqXcqHRsRhRtmKT1BAdKK3DstcLCJT2Ag64Jr toroJ3lx5xM8jyUDbhgag/0tTC9ILhnzyw== X-Google-Smtp-Source: ABdhPJxDF+b7BDYD/fZQe4NvfplJtDN9bw5SDY/Nnn0tga432tyFwiDjiwIFcwBPnlCfU83IMPKL3Q== X-Received: by 2002:aed:2ee1:: with SMTP id k88mr6873037qtd.104.1616355412898; Sun, 21 Mar 2021 12:36:52 -0700 (PDT) Received: from jupiter.onmars.janwieck.no-ip.info (pool-98-114-241-134.phlapa.fios.verizon.net. [98.114.241.134]) by smtp.gmail.com with ESMTPSA id o7sm9608186qkb.104.2021.03.21.12.36.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 12:36:52 -0700 (PDT) Subject: Re: Fix pg_upgrade to preserve datdba To: Tom Lane Cc: Magnus Hagander , Robins Tharakan , Peter Eisentraut , "pgsql-hackers@postgresql.org" References: <1742698.1615221182@sss.pgh.pa.us> <1743618.1615222719@sss.pgh.pa.us> <4fbf92f2-ec91-f4fa-a259-f0968e34f3d7@wi3ck.info> <0b5d506d-70d2-1506-bbdf-89e6453c0289@wi3ck.info> <384713.1616345832@sss.pgh.pa.us> <2284b71d-af55-2625-f8c2-cedf1f1a70ca@wi3ck.info> <388155.1616351018@sss.pgh.pa.us> <388710.1616351698@sss.pgh.pa.us> From: Jan Wieck Message-ID: Date: Sun, 21 Mar 2021 15:36:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <388710.1616351698@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/21/21 2:34 PM, Tom Lane wrote: > and I see > > -- > -- Name: joe; Type: DATABASE; Schema: -; Owner: joe > -- > > CREATE DATABASE joe WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII' LOCALE = 'C'; > > > ALTER DATABASE joe OWNER TO joe; > > so at least in this case it's doing the right thing. We need a bit > more detail about the context in which it's doing the wrong thing > for you. After moving all of this to a pristine postgresql.org based repo I see the same. My best guess at this point is that the permission hoops, that RDS and Aurora PostgreSQL are jumping through, was messing with this. But that has nothing to do with the actual topic. So let's focus on the actual problem of running out of XIDs and memory while doing the upgrade involving millions of small large objects. Regards, Jan -- Jan Wieck Principle Database Engineer Amazon Web Services