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 1urHpk-003cVn-4v for pgsql-general@arkaria.postgresql.org; Wed, 27 Aug 2025 15:13:09 +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 1urHpj-00G26U-Bh for pgsql-general@arkaria.postgresql.org; Wed, 27 Aug 2025 15:13:07 +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 1urHpi-00G26M-Uy for pgsql-general@lists.postgresql.org; Wed, 27 Aug 2025 15:13:07 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1urHpg-002A4D-2n for pgsql-general@lists.postgresql.org; Wed, 27 Aug 2025 15:13:06 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-74526ca79c2so1007993a34.3 for ; Wed, 27 Aug 2025 08:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756307582; x=1756912382; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=4r1NndgnjEF033RVTihtgQTZ6b59j6pzhNYmqX86nbw=; b=T2VGEk7G0IjsIp9rIGWJBPatiaMDKZIDlEB8gyJh6QnGs+HVVyEV/Df1K20D8d3uNs a33DX5uOPDY2Le+nVTVYHAsGBqedHcaBA5XjYPdH/VQHQQfvPUXsYrw+vurhIbQ+l53u EQNocehzP+qjdgHoQRuuFTYK1VI22ND8DgQRfDbCr+Q5lFBgWfBEoIaCpFvQkGtyKlU2 d1xQvnymVYKhMxfTHzYcG0iuZBCmm4NTAjLZcc/usj0ID+spIqfRO94AEPYM5wD/KNzz CFB8ms7NZAbmwgSZ5pZdWVRLYZW7Zjgx6PBMH9Ht90PQNXRWnu2Rlfxlmh0cBc1kB9qe X3Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756307582; x=1756912382; h=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=4r1NndgnjEF033RVTihtgQTZ6b59j6pzhNYmqX86nbw=; b=JYmqAuoW1PCu0op/o5QPOj7USdBWw0mE855kNXIjQ26c6RaVY/1qIIgZiCKYEz2ap3 5fIsR85RuVsWodzZ0SZBwTzvdjDr+uz1vu9yx6eyb4cQHKvE3JiYJvLt+e+aqQpHXuHL L2sHZB0iSEJVNGPHxlHYejAaR78S53gy2NyeBqsSUscbjLRjq7hvJ88wcgG+RULdx6kF qBWdwxbgYKC5IQ12YvrrQNR4Fkh7rro5jAB+5Zzgt1HMqZjDEHTkQtG4Zj0HE3iJkBjm eg+7rjop6jZTdSirPONkjCVQe18tAWcxqUdvNhvI1KLThtBJ+8hFkDySSq+b5NREsSXE 0xKw== X-Gm-Message-State: AOJu0YwipG2B8BfgKm2rhD0X5Pf+ZpSH7AIse0kudeWz6jI7iubkJrcB 8qANboLHPKEVUy2/AHoS4sd3B9lCjbxhl/ZSkFW++t/FI/WZr1a/LukzfKxK1JdrnVVSN2zA/CQ 2JDN8kDaXm57NXb4oyegrShPhVPNyp0fS9Q== X-Gm-Gg: ASbGncuyNxR1L8wOogNXyUjWDOxxttfpNY2odyEzJ701E1/1AuzMPkjVrTUPSdvvfNo B/zsECaIZK2rarcG8g3EjA9/eoprgWUyPCcG8uSCZjHr+1z/htKww0jv5gmvl+pzBXKBI6qvgi3 UEhoyBe9MjAHEm8niu80Fo1rqh0ULq3YI0E79zzzy4/kE06LNhNxMxncE24iVOviXRnHqxZE/iE 1Pxha1+ X-Google-Smtp-Source: AGHT+IGjHvasvP85HqUNUyTDhDGVWnep6pKRzCrfNCmdu6u/eHKYBaSBAHXRcO0/xmO0cnuSSDCVfk7HHiFOQrhbANw= X-Received: by 2002:a05:6808:2187:b0:437:d7b0:878c with SMTP id 5614622812f47-437d7b08d5dmr521075b6e.20.1756307581954; Wed, 27 Aug 2025 08:13:01 -0700 (PDT) MIME-Version: 1.0 References: <3541781s-75o7-26pp-46pp-qs54o4406192@tzk.arg> <1389082.1756304193@sss.pgh.pa.us> <1392027.1756305777@sss.pgh.pa.us> In-Reply-To: <1392027.1756305777@sss.pgh.pa.us> From: Ron Johnson Date: Wed, 27 Aug 2025 11:12:50 -0400 X-Gm-Features: Ac12FXzpkmJFXKozfMNZrbM5PluyG2MTpl5gKDWG1WThKlL7CwZEbeumlzM2980 Message-ID: Subject: Re: In-order pg_dump (or in-order COPY TO) To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000089f07e063d5a3933" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000089f07e063d5a3933 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 27, 2025 at 10:42=E2=80=AFAM Tom Lane wrote= : > Ron Johnson writes: > > On Wed, Aug 27, 2025 at 10:16=E2=80=AFAM Tom Lane w= rote: > >> Don't use --format=3Dcustom (and not -v either). That causes pg_dump = to > >> include the OIDs and pg_dump object IDs of all the tables and other > >> objects, > > > That's interesting. Why? (Since isn't it supposed to be Bad to rely o= n > > OIDs?) > > -v in a text-format dump includes that data for debugging purposes: > > -- > -- TOC entry 1401 (class 1255 OID 16499) > -- Name: fipshash(text); Type: FUNCTION; Schema: public; Owner: postgres > -- > > (The "TOC entry" comment line wouldn't be there without -v.) > Then custom format has to store the same info so that pg_restore > can produce this identical text output on demand. > Ah, so the culprit is "-v". I like using -v, redirecting it to a log file (more info is almost always better), but then I rarely use pg_dump, and never pipe it to de-duplicators. (ExaGrid is supposed to deduplicate, but that's not going to stop me from using pgbackrest, compression and encryption; PCI auditors care about that, not deduplication.) --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --00000000000089f07e063d5a3933 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 27, 2025 at 10:42=E2=80=AFAM = Tom Lane <tgl@sss.pgh.pa.us>= wrote:
Ron Johnson <ronljohnsonjr@gmail.com> writ= es:
> On Wed, Aug 27, 2025 at 10:16=E2=80=AFAM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Don't use --format=3Dcustom (and not -v either).=C2=A0 That ca= uses pg_dump to
>> include the OIDs and pg_dump object IDs of all the tables and othe= r
>> objects,

> That's interesting.=C2=A0 Why?=C2=A0 (Since isn't it supposed = to be Bad to rely on
> OIDs?)

-v in a text-format dump includes that data for debugging purposes:

--
-- TOC entry 1401 (class 1255 OID 16499)
-- Name: fipshash(text); Type: FUNCTION; Schema: public; Owner: postgres --

(The "TOC entry" comment line wouldn't be there without -v.)<= br> Then custom format has to store the same info so that pg_restore
can produce this identical text output on demand.

=
Ah, so the culprit is "-v".=C2=A0 I l= ike using -v, redirecting it to a log file (more info is almost always bett= er), but then I rarely use pg_dump, and never pipe it to de-duplicators.=C2= =A0 (ExaGrid is supposed to deduplicate, but that's not going to stop m= e from using pgbackrest, compression and encryption; PCI auditors care abou= t that, not deduplication.)

--
Death to <Redacted>, and butter sauce.
Don't boil = me, I'm still alive.
<Redacted> lobster!
=
--00000000000089f07e063d5a3933--