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 1sGhDG-00G3qN-5l for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jun 2024 15:45: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 1sGhDD-00Dj9j-E7 for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jun 2024 15:45:36 +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 1sGhDC-00Dj9b-TU for pgsql-hackers@lists.postgresql.org; Mon, 10 Jun 2024 15:45:35 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sGhDA-000eXZ-Sh for pgsql-hackers@postgresql.org; Mon, 10 Jun 2024 15:45:34 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-6bfd4b88608so29635a12.1 for ; Mon, 10 Jun 2024 08:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1718034332; x=1718639132; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=odXQXxvBgvgvPmN2kkJ4tkseDeFCS2W7JqAC8u+qPrU=; b=ePPYaj61Z1IJfXK7J9xJyf7dn/kAXmvE0B6hPfIxX9o8Q6hEVi7br2A8ZRGjYG3i/F rvpshOkNf5NMXguRUW1vmqpXYMxKNLcbjYZ11Fofe2BrOhI3+Iuya4zaAdZMbLXOROaa nTS4EIMIv3zEqahsP3Dz75x4GqZM9xvLXtje1U9dD507d9F2DTVZKSh5D/HxOZHtx5Ve A1TGFTvmcUj4FlQpHEbcKfJumT/EugZbmPEk4wpeiGLHSjZrbp8ctz/A3vOSzY+rpuR2 kjGa0IwWeLbFLMOX4NV3GLcDlmb8EKs/L19gjSuwzqyE//MoXEMyxyk2rKo9cF87Epyj iAFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718034332; x=1718639132; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=odXQXxvBgvgvPmN2kkJ4tkseDeFCS2W7JqAC8u+qPrU=; b=UwwbQK8cTlO/f29CsXPOFzg6sd2LlJ5m6bAAvDckFMFuHKqe6e4CkmEE3GUXu4eAY2 eDU7qF4pPkct7WRVkj/pfbQlsaK9WkA+oqmzrzfNfiz90kue8o7gTM3eZwj+AQ7vxp7r uzo+5UZ/ex+PV2AhpzjGxQI1tuN1y3w0eD6c84T6dap6c7E+lwyOpZYNnzz8M+KWzych gGDuHFatXnWFVCwp+7gvTGSnRP+wTkjjH6IEH7r057uGopbVDh4kxTYKpc9+y4tQli4i wGy/Sphb6QbwnY3wuCl83J64ohc4VdHonlYUTPmqQR1TPaXZJs6aDVgeIULpBpf24UsZ qcIw== X-Forwarded-Encrypted: i=1; AJvYcCVAMlcErQ0a6TyZvR/JB82BzLEu4UKZ0mweAOhXapRGq6i1bsW2ID/yRU1aU2IgoVXjvoXfYXYub2VDKpU+IO95a9XtEeLgGURlYnDd X-Gm-Message-State: AOJu0Yx8fRF4b7Mo7w0bu4QMMlXn7mX34rqDbppxcBS04XSmfNHdw7BI QEfN2qDQ2RUnCHj3BrG+OvbreXmShJkI9chc18CznYp5bHZxY3uvW7Q0l7brRVih4YI3UayxPiD JU4l8ukyE75avhLFkitMbayyQkccRp1PzylRp X-Google-Smtp-Source: AGHT+IEMFejXuXp/o302DqXzcgYC8RqH37JZ3W6WBIhpk4I2hhBAi3nCQlOf6aFVznAK3SKgQqtTE7c8CgCmv8/vjBM= X-Received: by 2002:a17:90b:4b4d:b0:2c2:f81f:f97b with SMTP id 98e67ed59e1d1-2c2f82004a5mr3379179a91.28.1718034331985; Mon, 10 Jun 2024 08:45:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Magnus Hagander Date: Mon, 10 Jun 2024 17:45:19 +0200 Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Nathan Bossart Cc: Andrew Dunstan , PostgreSQL-development Content-Type: multipart/alternative; boundary="000000000000120632061a8b0ab9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000120632061a8b0ab9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 5:03=E2=80=AFPM Nathan Bossart wrote: > On Mon, Jun 10, 2024 at 04:52:06PM +0200, Magnus Hagander wrote: > > On Mon, Jun 10, 2024 at 4:14=E2=80=AFPM Nathan Bossart > > > wrote: > >> I'm curious why we couldn't also support the "custom" format. > > > > Or maybe even a combo - a directory of custom format files? Plus that o= ne > > special file being globals? I'd say that's what most use cases I've see= n > > would prefer. > > Is there a particular advantage to that approach as opposed to just using > "directory" mode for everything? I know pg_upgrade uses "custom" mode fo= r > each of the databases, so a combo approach would be a closer match to the > existing behavior, but that doesn't strike me as an especially strong > reason to keep doing it that way. > A gazillion files to deal with? Much easier to work with individual custom files if you're moving databases around and things like that. Much easier to monitor eg sizes/dates if you're using it for backups. It's not things that are make-it-or-break-it or anything, but there are some smaller things that definitely can be useful. --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --000000000000120632061a8b0ab9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Jun 10, 2024 at 5:03=E2=80=AF= PM Nathan Bossart <nathandbo= ssart@gmail.com> wrote:
On Mon, Jun 10, 2024 at 04:52:06PM +0200, Magnus Hagander wr= ote:
> On Mon, Jun 10, 2024 at 4:14=E2=80=AFPM Nathan Bossart <nathandbossart@gmail.com= >
> wrote:
>> I'm curious why we couldn't also support the "custom&= quot; format.
>
> Or maybe even a combo - a directory of custom format files? Plus that = one
> special file being globals? I'd say that's what most use cases= I've seen
> would prefer.

Is there a particular advantage to that approach as opposed to just using "directory" mode for everything?=C2=A0 I know pg_upgrade uses &qu= ot;custom" mode for
each of the databases, so a combo approach would be a closer match to the existing behavior, but that doesn't strike me as an especially strong reason to keep doing it that way.

A gaz= illion files to deal with? Much easier to work with individual custom files= if you're moving databases around and things like that. Much=C2=A0easi= er=C2=A0to monitor eg sizes/dates if you're using it for backups.
=

It's not things that are make-it-or-break-it or any= thing, but there are some smaller things that definitely can be useful.
=C2=A0
-- <= br>
=C2=A0M= agnus Hagander
=C2=A0Me: https://www.hagander.net/
=C2=A0Work: https://www.redpill-linpro.com/<= /div>
--000000000000120632061a8b0ab9--