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 1ufPVx-006tjF-2D for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 20:59:37 +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 1ufPVv-004qhe-MN for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 20:59:35 +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 1ufPVv-004qhV-DD for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 20:59:35 +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.96) (envelope-from ) id 1ufPVu-000mOx-0L for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 20:59:34 +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 56PKxTr82225041; Fri, 25 Jul 2025 16:59:29 -0400 From: Tom Lane To: Andrew Dunstan cc: Noah Misch , Mahendra Singh Thalor , =?UTF-8?Q?=C3=81lvaro_Herrera?= , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall In-reply-to: References: <948154fe-0278-4f4c-8f5a-085e12f03163@dunslane.net> <20250708212819.09.nmisch@google.com> <20250716001957.c6.nmisch@google.com> <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <20250722005339.ca.nmisch@google.com> <20250725162141.6f.nmisch@google.com> Comments: In-reply-to Andrew Dunstan message dated "Fri, 25 Jul 2025 15:31:47 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2225039.1753477169.1@sss.pgh.pa.us> Date: Fri, 25 Jul 2025 16:59:29 -0400 Message-ID: <2225040.1753477169@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > Before we throw the baby out with the bathwater, how about this > suggestion? pg_dumpall would continue to produce globals.dat, but it > wouldn't be processed by pg_restore, which would only restore the > individual databases. Or else we just don't produce globals.dat at all. > Then we could introduce a structured object that pg_restore could safely > use for release 19, and I think we'd still have something useful for > release 18. I dunno ... that seems like a pretty weird behavior. People would have to do a separate text-mode "pg_dumpall -g" and remember to restore that too. Admittedly, this could be more convenient than "pg_dumpall -g" plus separately pg_dump'ing each database, which is what people have to do today if they want anything smarter than a flat text dumpfile. But it still seems like a hack --- and it would not be compatible with v19, where presumably "pg_dumpall | pg_restore" *would* restore globals. I think that the prospect of changing dump/restore scripts and then having to change them again in v19 isn't too appetizing. regards, tom lane