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.96) (envelope-from ) id 1w7f4m-005ZS1-26 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 19:48:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7f4l-00Czl3-0I for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 19:48: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.96) (envelope-from ) id 1w7f4k-00Czku-2C for pgsql-hackers@lists.postgresql.org; Tue, 31 Mar 2026 19:48:35 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7f4i-000000021Pj-49Hs for pgsql-hackers@postgresql.org; Tue, 31 Mar 2026 19:48:33 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-40f0e14b9f9so4092312fac.1 for ; Tue, 31 Mar 2026 12:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774986512; cv=none; d=google.com; s=arc-20240605; b=GGRBuRiQNf/pXS5t5J9sriJh1/ZEI555j36h2kOiBKgoUnR9IB+JPWSs18KiidHujm YiIFSS8KsAZpK0RMh7Pbn6gDh20C2DdAfQA5RwZCI0o7Cy3Ajded7ft2WpHiZ09gaQN8 zBKWyRKiptaDCbSDotuIv55Oe8XhvA5hOYU46QhGLtu1QAUOeN2Z6tcyrF0NIyclGX9m 1GqeGxJdgdKW1lGDLALt0XVvaCgjgd8ulg+CL4e6L+CIRYdenDoaGsGAyxd/Xc5ul0a1 wNWKUdgA0u0IXU5BwFt8jsiXFcHQd/MjKuI+mUp6gtMFr+ODjgehM7VRF+XFNAb/pqzo Z4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature; bh=hoJh4Q4yWRStlfCAKvtCeVQfygUOszoXQVa4qPdLQsg=; fh=NuVX8C0lM7tdog1BadxR6NOC4bbwfOl9VdOoz4x6hDI=; b=eyL0u4imsEsK3i3+WAUaKTU2JHLplxyuiYiJZ0G4t4rufkBxSpJNpBGBPLOwbJ+31N 5iTL5a/ya9zdcNE+KvZHQToGNyJMsl4Hbiegn+BhtDTUx0wDJVHCJW9LwZGUG3vXUBM+ KXeMfzKSlHdpGqBfhC95Fp4YhCMEOCFqyVFAHaeh0qsMYPz+FtSLAVnW4UMNx+rPmEgo +PttsGf9twERSn8YizlkbVBRr3U4aO9TESv+GtKGoHeKSIzifrrA0kApzIhE6Flr8Gtu tAvOxxyCSRET6ToQtJAtLcJoaJguaV1a3vY0y9DafTTWsHHuOFjV79fCn7ipWmYcFK9J Gppg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774986512; x=1775591312; darn=postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hoJh4Q4yWRStlfCAKvtCeVQfygUOszoXQVa4qPdLQsg=; b=C2WzT8N6pGnOH40O2udKfndcismhW2x+3WoqTbTJXc/K+nunV+AkTGXKcq7fdIK9X2 Iy/4wRF66YQ0O1VYtYOVbyHL31o2YOwTdqonLG+YSWPysD051QvDZlhcsyPXEz2ombIn jjnadyzsgQaKt7T68Yr1WkYxBtv0eUI1uWBfPJwhrgBeP2KqdrmpOjM1FzC1ce0CS/mj nvWSNPufERh5mtL6fc+iSduhfAqPpOMYvQepVwxgo/a+glkBlR8DRvRuSe8g6KWCxBCl F3oLnI+7fNFILAnF2OH3GvBGbgxoR1zcuZfIYeYzeDPP+UtNNCsBNraJeczyCP4BGxFO h9mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774986512; x=1775591312; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hoJh4Q4yWRStlfCAKvtCeVQfygUOszoXQVa4qPdLQsg=; b=P8CWKdA1FOSh9bsyrCPcRXY5CwMOcDYMan03l5t0rm1ypBIFGhH9odnhPxhYaaz+XU GCkgNi6CF9VQx88bxeVy/sQ4DXw7auDBnJA6bisAiDUHYCSF//UcBfjYN379KaHO0/ui I8y1hTREFYEkn+fvmXyJ7NI79fO01qViNaRnIC5hz1ElLrn7GtOR41iXEGQFp13DdU6g YTpjC77qJI7v7cZ+kKrh7zgSJYcgoRAocaD/yolveFhv5IQDn9pDkmnHmz1aKnVrPQiM 2ysKaUrjE20p/JEcZrZOWIlr7VdDM8uwv4F6vZQLTbSvhDevN8MNEeszeYngmtTxcKrq MQ1w== X-Forwarded-Encrypted: i=1; AJvYcCUF3/8gr+LAqEwab+sshiwKdQdGvvIRHUO90LEC94g5tGLNPFCKdRNLlpn1fP1jbqCyi3NWxtqr48WIan1k@postgresql.org X-Gm-Message-State: AOJu0YxdtLeQaC+qL2eF+GNpgIuqKM8lt0Cd5NrmvYq9/vTJOUy4wume CnkfXvk0cvUM7oeF1iUl4KlMfe4JHecIGaiY0m8x8IBMK/74kn1CE/JjWoocLIJ6BqwmqHyHcjH eVNKcE/JiCe6AhkxLEzlZ0dchIT51iI4= X-Gm-Gg: ATEYQzz8U0HdLvQ98Xyk68RaXDrPdymnxzZId29xVJF7vTh4QxHaSE9T7LbIioufOP3 4LxD1LI8tOSaAN1EkJn0Kl64cTEPW2dtvtFFGpabA2azyJy5XEEtZViG6I44xIiXvmxGKtxWmth CDJcCIj/LwLGB65eqxhLvetkithTU9irTWPVlbEk34EofJBro3C8mcjx9uzAIutwGXkfoLs6zN3 zXNl0ZnOZn4j8zqyjLwv+aBC137IFLIAaPh1wQ62go6oEg8MNPq0/gKHg+giMxGvUs39Ua7dz0A hm92PPUbHF8QuZnwEFSqUV/BpxdSjJF9rHYZ5jWN X-Received: by 2002:a05:6870:c993:b0:40a:5a07:3598 with SMTP id 586e51a60fabf-422cff2284amr579717fac.36.1774986512138; Tue, 31 Mar 2026 12:48:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:797:0:b0:620:940:3fe6 with HTTP; Tue, 31 Mar 2026 12:48:31 -0700 (PDT) In-Reply-To: <2739511.1774981880@sss.pgh.pa.us> References: <1849705.1774809224@sss.pgh.pa.us> <2739511.1774981880@sss.pgh.pa.us> From: "David G. Johnston" Date: Tue, 31 Mar 2026 12:48:31 -0700 X-Gm-Features: AQROBzCxhZC99KxwrWdtXlW53u8QbXUrPnuJxuXjh2yjNFzYJYxYJOuSc7fQNmU Message-ID: Subject: Re: docs: warn about post-data-only schema dumps with parallel restore. To: Tom Lane Cc: vaibhave postgres , "pgsql-hackers@postgresql.org" Content-Type: multipart/alternative; boundary="00000000000089843d064e574084" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000089843d064e574084 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, March 31, 2026, Tom Lane wrote: > "David G. Johnston" writes: > > But how about adding something like the following to the pg_dump notes? > We > > already have the corresponding link going to pg_dump in the pg_restore > > notes. > > > "If producing a non-plaint-text format output see also the pg_restore > > documentation for details on how the restore process uses the different > > sections." > > Hmm, I think we could be a bit more definite than that. What do you > think of this advice: > > > When creating an archive (non-text) output file, it is advisable not t= o > restrict the set of database objects dumped, but instead plan to apply > any desired object filtering when reading the archive > with pg_restore. This will preserve > flexibility and possibly avoid problems at restore time; for details > see the documentation. However, > omitting table data () or large objects > () does not have any surprising > consequences. > > > I=E2=80=99m against including that final sentence. The rest seems ok but I= =E2=80=99 suggest going with an explicit mention that =E2=80=9C=E2=80=94no-schema is = risky=E2=80=9D (or otherwise omitting the entire section) I have a nagging suspicion we could be a bit more precise; e.g., it=E2=80= =99s advisable to include the schema objects for the data that is being exported only, not the entire schema always. But we already mention that dealing in subsets can introduce dependency issues so people have already been given the alert there. But data/no-schema seems like it should just work and this just needs to warn them that it may not. David J. --00000000000089843d064e574084 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, March 31, 2026, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"= ;David G. Johnston" <= david.g.johnston@gmail.com> writes:
> But how about adding something like the following to the pg_dump notes= ?=C2=A0 We
> already have the corresponding link going to pg_dump in the pg_restore=
> notes.

> "If producing a non-plaint-text format output see also the pg_res= tore
> documentation for details on how the restore process uses the differen= t
> sections."

Hmm, I think we could be a bit more definite than that.=C2=A0 What do you think of this advice:

=C2=A0 <para>
=C2=A0 =C2=A0When creating an archive (non-text) output file, it is advisab= le not to
=C2=A0 =C2=A0restrict the set of database objects dumped, but instead plan = to apply
=C2=A0 =C2=A0any desired object filtering when reading the archive
=C2=A0 =C2=A0with <application>pg_restore</application>.= =C2=A0 This will preserve
=C2=A0 =C2=A0flexibility and possibly avoid problems at restore time; for d= etails
=C2=A0 =C2=A0see the <xref linkend=3D"app-pgrestore"/> docu= mentation.=C2=A0 However,
=C2=A0 =C2=A0omitting table data (<option>--no-data</option>) o= r large objects
=C2=A0 =C2=A0(<option>--no-large-objects</option>) does no= t have any surprising
=C2=A0 =C2=A0consequences.
=C2=A0 </para>


I=E2=80=99m against including that final s= entence.=C2=A0 The rest seems ok but I=E2=80=99 suggest going with an expli= cit mention that =E2=80=9C=E2=80=94no-schema is risky=E2=80=9D (or otherwis= e omitting the entire section)

I have a nagging su= spicion we could be a bit more precise; e.g., it=E2=80=99s advisable to inc= lude the schema objects for the data that is being exported only, not the e= ntire schema always.=C2=A0 But we already mention that dealing in subsets c= an introduce dependency issues so people have already been given the alert = there.=C2=A0 But data/no-schema seems like it should just work and this jus= t needs to warn them that it may not.

David J.

--00000000000089843d064e574084--