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 1ugBEM-00GxIf-Co for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jul 2025 23:56:39 +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 1ugBEK-002eqv-4K for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jul 2025 23:56:36 +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 1ugBEJ-002eqm-R4 for pgsql-hackers@lists.postgresql.org; Sun, 27 Jul 2025 23:56:36 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ugBEG-001CQ7-2o for pgsql-hackers@lists.postgresql.org; Sun, 27 Jul 2025 23:56:35 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-23ffdea3575so4801845ad.2 for ; Sun, 27 Jul 2025 16:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1753660591; x=1754265391; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Bwv//Dq/llhsAdC5zsql8IPPGtcI/Fbf+IThs7ZmGMs=; b=e1OOI3qJh3eH9wpPe6SP939cGzvPBONBr5g9F/3qTrQNszJvRrzKvnpQCuIqpNLAIs erSB1JBqPbThJJKj0iU99G8vKE3D1sykPOAf+HoGlYLr+Q2WMnWk62lr9J7YSrtmUzOc N5AhWwJKWxascuGsLonvD1YxyrZSWGjNOq/Lc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753660591; x=1754265391; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bwv//Dq/llhsAdC5zsql8IPPGtcI/Fbf+IThs7ZmGMs=; b=EodwmFREnTgKNfgihgXJYvpC3WYSc9qm/4iu7TWH4cZZX+2lCU7Tuc3C+OSBYv/s+D NlNiUDh6RUFJaCbCK2+ifGExTKKIhhPPqEiOAOGQLb4pYlpQo/Mx8P1CE3/npvqv4/Cd h70B1FgKcE8u8HclWuayJWBv3vqRDSM994mMtjLnzhXnI4/RS28BOBu3tWn63ZNqBCYJ 1KdgR49wvR+rJ3z53r/lcT0pfMKFhvumvZW5TwF7ansBFohIJBgq76MX6941vItAKd5L xTdntUM2Zyq/iLQEVel3FfriPRuOfqXRGF64FxMppl+m5rFhJIMv7Y1b5E32cxAbTA2C 3qCA== X-Forwarded-Encrypted: i=1; AJvYcCWEd87DMX7Xanq5ydVbxczHYUwWX0A5b2geVbbKdFfDEC8u32LGEdF57115CUW51gKofW1EQkoYITomEFnP@lists.postgresql.org X-Gm-Message-State: AOJu0Yxo7ROxY/430Q9055tzJz8n5LvYCE/PYP8z6C/4EqzaXACqBo2t lX4ZhqSPOSc6cEuy8RT75PGRLjzQgUVmUsyov0zjS9StvstvGIIm5SaIM3pp9dKE8w== X-Gm-Gg: ASbGncvdUWnP3s0R02uod7jBsbsPrJbee9mWh2RdB/wKUeSwFm77PxqgR0trI2gGHU5 rc2dfV+fgLKIHHZiilESxnqTuid4uumpwMTZwCSB/CfG11KwsNADeQwbpIHEGZyQIEmcSbpLWRS YdbBW3tHgbd1VYAMkP6Cq1rgZQp1PBGpWZhWVNNoXiXML1xwv4AZ9aHNP+bmUzeg5RE33QxWZFl 3SWYR5sh2oNVM8Uh5zZlxBQNH/v0KFCupyiEe1qacoZMl1GpsFnRBpnWy1GA2aJn0119NNKPRI0 hPJ6Zpo00wm8+kFkXKwVbP2H0cE7ChFLNWnZ5wu0vrQ8qcdjL+F9aF47+rY7jI6sbmiIqTPcSSG PtqUiM8qxNTwfmSu3tY7MhGYt/xdMDnQhGxPuuVra9iPKQ3eDaLk= X-Google-Smtp-Source: AGHT+IGs3I6YS1TtAaE2D9HOoL4XFU9SQi+E9IPjNxOACUMh2SCN06KoOaJ7oJaRci3woj8B22qGbw== X-Received: by 2002:a17:903:1a83:b0:234:d431:ec6e with SMTP id d9443c01a7336-23fb304ff88mr141710285ad.3.1753660590578; Sun, 27 Jul 2025 16:56:30 -0700 (PDT) Received: from google.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2403c2157f8sm2923125ad.165.2025.07.27.16.56.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jul 2025 16:56:30 -0700 (PDT) Date: Sun, 27 Jul 2025 16:56:28 -0700 From: Noah Misch To: Tom Lane Cc: Andrew Dunstan , Mahendra Singh Thalor , =?iso-8859-1?Q?=C1lvaro?= Herrera , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall Message-ID: <20250727235628.e2.nmisch@google.com> References: <20250716001957.c6.nmisch@google.com> <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <20250722005339.ca.nmisch@google.com> <20250725162141.6f.nmisch@google.com> <2225040.1753477169@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2225040.1753477169@sss.pgh.pa.us> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 25, 2025 at 04:59:29PM -0400, Tom Lane wrote: > 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. +1