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 1qx96e-00GKlU-0O for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Oct 2023 16:57:44 +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 1qx96c-008bRP-IJ for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Oct 2023 16:57:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx96c-008bRF-94 for pgsql-hackers@lists.postgresql.org; Sun, 29 Oct 2023 16:57:42 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx96Z-002uzk-VZ for pgsql-hackers@lists.postgresql.org; Sun, 29 Oct 2023 16:57:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39TGvcG72223505; Sun, 29 Oct 2023 12:57:38 -0400 From: Tom Lane To: Philip Warner cc: "pgsql-hackers@lists.postgresql.org" Subject: Re: pg_dump not dumping the run_as_owner setting from version 16? In-reply-to: <20231028085427.5DA3A220F0B@thebes.rime.com.au> References: <20231027042539.01A3A220F0A@thebes.rime.com.au> <20231027070539.87C5A220F0A@thebes.rime.com.au> <051e7f1442f289cf3cd16e5681072b340007ec0f.camel@cybertec.at> <20231028085427.5DA3A220F0B@thebes.rime.com.au> Comments: In-reply-to Philip Warner message dated "Sat, 28 Oct 2023 19:54:18 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2223503.1698598658.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Oct 2023 12:57:38 -0400 Message-ID: <2223504.1698598658@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Philip Warner writes: > Please find attached a patch for pg_dump to honour the setting of `run_a= s_owner`; I believe that effective pre-16 behavious was to run as owner, s= o I have set the flag to =E2=80=98t=E2=80=99 for pre-16 versions. Please l= et me know if you would prefer the opposite. I think that's the correct choice. Fix pushed, thanks. regards, tom lane