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 1ugMaz-001vGk-61 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jul 2025 12:04:46 +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 1ugMaw-0072Jv-6a for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jul 2025 12:04:42 +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 1ugMav-0072Jh-Pi for pgsql-hackers@lists.postgresql.org; Mon, 28 Jul 2025 12:04:42 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ugMar-001IIa-2S for pgsql-hackers@lists.postgresql.org; Mon, 28 Jul 2025 12:04:41 +0000 Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-7dfd667e539so465996985a.2 for ; Mon, 28 Jul 2025 05:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1753704277; x=1754309077; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=xVM+BTKOnA9GxsLZH8iTKf2L2ZucMuR4FLnK6tyI+Vo=; b=I8J7syQoo7A9J2Y9nm7D4XibzpZFqnvwD+3KF+F+ADPCcFeg0ksdGZ2tGKIU1AaiXz x26wDkut04UG/ul2TCwX4KJxhrgWxr9yrYGv2CoqzSl2sg9+nzqg+GgXzH9KlHyCowrF IhrrrNiC/ECCcQPP9VIoRBMchcjS0FTseGgo/mAkCl0W/9uoR4GgmsqU1+cm8HTtmxL4 Yw1aRS4sDatjoDej4xATVQDEoQCMRmlsSsT5hxM264adPtkMsVwAARjSsNXPTjZDJGOz 4/1F4M6dm4GKxMg5E+UgJltvYLkkP7pnjJcJetEfdaPpT0khJOsZ2UN8BiaHfYdQ7GK2 443Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753704277; x=1754309077; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xVM+BTKOnA9GxsLZH8iTKf2L2ZucMuR4FLnK6tyI+Vo=; b=HVXYwxqnHjflVxK2PXHU2AJFIGVZI2xUJmqS0pohhlmLWc/TbhF5oxsH4GD2noNPDt aeuwUZUiqYi3dN25vI0M8XRBzZrwfuYHLFBXaLkAGWKZ+/QfyEPyX60Ti23wrIdFwBU3 +gqGYeKvPw58Mu5QUoKWEnHXxb8B96bL2Rbe/8zozQJSs9wAducDvHlKLW7iy+/4oIks P/7DzJYb64+WFx8Yc3ifDWikd4p0iUEX71lcPGJWd2fjEpRZV/XV5ET8capqN09BbRkE /08M78G8Kvr4kl+9VNFywMNuVa9eLmdSz+iTV+DqTe2MSNLyWCgE4zWsMwYJEfjwC2eo PZKg== X-Forwarded-Encrypted: i=1; AJvYcCVMfxkGyc7FHvP7GuI2usmReq5JGTbkoNQEAqH3MVteHNeM+7KiFRLo1rWvf42hnCxzmzFq2dn1b8w0udBr@lists.postgresql.org X-Gm-Message-State: AOJu0Yx+6J/Uizy4ixE9azox+hs/bW197jr1NbYwHLPKTGWx0oMoTniZ Bmjc6gXabPU+muj6ThbrzhZ+SaSf520XxxzK5hjbCpxy3928erTx+2U+kv/xu/7t1WA= X-Gm-Gg: ASbGncujCflVe7+5VleSpsH8JxtmcZERHHRbQ87KLle68WXD2CSe/l/NpaIsJmzyYTu dMo61UkKmGqWhhfooDnqzbVn34H714Y6O4W3lhRCCG1nGJXsoNGuZ9UbqcZ7yNHvVpcp7+Qvpf/ y7hLJbN0jNKjNnN4uUp4MQokTET1OdFXv9LjRKEAA+n35AhstXmTgYzH6dm2oV1Lo+AuhPqrZ/A wMofIYxtPvkW/lmgclZZwF4fWlmZZqYTS2ZN2tYAIArto3PBkBdCHs2Q0lMC9BKR/6aseW1/v1F GRJJiRfZMLubQHsY4s4ePJNlFwMI6qrfiKboj4v1gPgVt5WHDbHqyBeMC/22zMmZYNpKYAhJSRo P9lU6Smu5TX5tdjz3VCibmoRKfGGm1w== X-Google-Smtp-Source: AGHT+IGWPomqbDGiwn7F/gPtEx8AqTlt3tA5S3U+d7FA6WjvYLF7CQQn0Tpz9Tj40Zo3UM4psAIktQ== X-Received: by 2002:a05:620a:a809:b0:7e3:17dc:d1e4 with SMTP id af79cd13be357-7e63c1b5494mr1538201285a.58.1753704276486; Mon, 28 Jul 2025 05:04:36 -0700 (PDT) Received: from ?IPV6:2605:a601:a6b0:500::1cb? ([2605:a601:a6b0:500::1cb]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-7e643891823sm284628685a.77.2025.07.28.05.04.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Jul 2025 05:04:35 -0700 (PDT) Message-ID: <8f2ad50b-ebb7-4adc-997e-25e0ad96ff34@dunslane.net> Date: Mon, 28 Jul 2025 08:04:34 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Non-text mode for pg_dumpall To: Noah Misch , Tom Lane Cc: Mahendra Singh Thalor , =?UTF-8?Q?=C3=81lvaro_Herrera?= , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org 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> <20250727235628.e2.nmisch@google.com> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAlwQTAQgAQQIbAwIX gAIZAQULCQgHAwUVCgkICwUWAgMBAAIeBRYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNGd BQkdEO8nAAoJEJn6f8tZ/DuBq74H/jkTR4Zi3stbw+xC7v2u3QozssK7MYPL2AsVfh7OealS h182fiWXpfvmmAB7WUHbhk9GC2RAOnHI/2d2jgKaMLAHsGYOT0YopTVIwRY43fCw/mK67yxc wmDcX+zyKfLaivNbf5A7QPLNwda98bEAMSJ8Sn652Uc6cA8t3uKGsVzbRBQOoYzjgvBCfSrE 9ql3PDNg0l4BfAqabd2f70ZUm9VAMEPrgv/v2xI7M2XiL4g5BVmqLCOwxLM8RMCotCuoweUr VO43DeBCIDwLxotMJKvGWDjBzQYlU1NPUAtNcz/gN9ITUe1VUGjyvGj4u1lxBOcQQUw7l1+T 5moZ4iZxXzvOwE0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oKWaqf+wmW4tpDe/VV cxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7llV0xSSoFiieQBsr GvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8BoVrRFcdzlIY/NFN hFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C4R+M6w7o2PLGOjdZ +kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaYL++LAEOqrlvm2Tvq QqZRtnEAEQEAAcLAfAQYAQgAJgIbDBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNI2BQkd EODdAAoJEJn6f8tZ/DuBfw0IAKTsfD40teP/pp+bsLLMSxPXUYrrprTj7WFB5v61p6dkpSr/ qXmMlyahdxQFaPmfVgVirB1Vk/kHiWNnnGjfUV9nB2Zg9LI0Xb9/ts3LsUiRWXzG3tkMY6XL vsVOxW4XFRND9l2q+WW93aZ1DZl+fqWfYgMvsusFRhmGFOKTRfKPta2Pkv+AhA24N4+PrR5p bU4k2MO8PAGiK8eaYKGFG1bHKuAvoDoF7WXJ3FHxuWqLnKEt4dfOLm5pAe3zq1Lt6q8azT9i QWGpSAK5vQUWQHBHpiDjdPeqKZ6HiAXIIKfSmb+jrvXBqoP+D6/K7rUjG2aXiRtTIAXms9sm VRu7cmw= In-Reply-To: <20250727235628.e2.nmisch@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-07-27 Su 7:56 PM, Noah Misch wrote: > 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 OK, got it. Will revert. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com