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 1vkmIz-0020FM-1I for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jan 2026 16:52:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkmIx-00EuKY-1t for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jan 2026 16:52:39 +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.96) (envelope-from ) id 1vkmIx-00EuKP-0M for pgsql-hackers@lists.postgresql.org; Tue, 27 Jan 2026 16:52:39 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vkmIu-00000000jgo-2nBO for pgsql-hackers@postgresql.org; Tue, 27 Jan 2026 16:52:38 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-45c96b175baso2003061b6e.1 for ; Tue, 27 Jan 2026 08:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769532754; cv=none; d=google.com; s=arc-20240605; b=E2joz2BcFeGVGawLkLlFO1b5VaH8hLUwruXm3xTNFg37OAsDR1FsUPIU5PN9v4kBgz KYQ0xSnCnb8waMeLrD24kFB2ZJ+7Lt6PPbDQOQN8qwdiUtsdIw2pU7B42vMqe/v8i7JY 87hsFO4S4Gu5etzL+nQ5jGZmVbovEWz47kelrjIAeR/OqmsgpnHAJ3ReCThviQ5bSdIx GxswYWF2p2UGsG6xmu66QfGbcwQcXkHmY2kzMRd/wHqaWyul2gxV9YwWxWPa3yItnA04 Ec6ZNIs8E1kOiC7Lout7dbGJaOQjmWzUEgF4MkwJRz89KC6A6SSOUDPUC82N/zb3ggwv P56w== 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:in-reply-to:references :mime-version:dkim-signature; bh=9XocIepnpkoSQemJU1+DdM2Y4k87HvNPzZH65U+yIl8=; fh=kPiwBRlxMFAljSolUUNpKniGghw8TsT1hgnF53UQGnU=; b=LQwHxBHDf21gRaiBrDuM+5tQ78YnD/we8SpQ5WPfZCsBma5hyWqtTJlYsrIE9W2++N ksFOpmhS1dx/3ZX8oTVgsojZtoC7seNFMu77fq2AYQX4yjAnjzhlUAMe8ubtuqcIqsLP QGHkKqJJ+oZElrtlTbpEH0ziADRp6KQ2byZV883aJtDTos8JCqpQKqsrS5iaC3QcjS9I a8qdc0v/aJ9KtGaibLxu0bgv5ZshrMP1hdE/45josjK8IBpN2mbp53wMu8gQCVOqcfii QPUWPwnxrtg+XVo2nOOOrEQDn7f1ssHHh9QCXm6ybUejOhhJOXV9TphBVsfKWw6JIgw5 DFmw==; 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=20230601; t=1769532754; x=1770137554; 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=9XocIepnpkoSQemJU1+DdM2Y4k87HvNPzZH65U+yIl8=; b=VyDX39UezR/bUWwY8PqH3t4vWgfU9mIcnbWr5UkDPioGZJCuywwcPbPcMVGPCKTWEL EvpASTDJ9Hn4el7TXelVF1wADki/PWgZ8ojDWNR20q0Dt++K7dsDYpQcpVltNX7OrpdM fqf+8wioZ52Iga5GkL8WTqF1yEUVxPvf5lHhcA0zpfTmbrSwDSJsqSngZzFmFn5cmNKW lSZBsrP49WAxRIxPlGEBQ1V44uoKS75JzLJyMXEw37sYSYq2EzRFOUEjXY+KPwt94jz3 FbOZIvtRalCa6mmR0QgIHjSzxY6KX6YInt1riCN1t8tQwV4Mwgd+soSA4YYUakXzSmEc rqBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769532754; x=1770137554; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9XocIepnpkoSQemJU1+DdM2Y4k87HvNPzZH65U+yIl8=; b=ZxkhaHqBOeCnX2XUzducHd+27z0PPmLGXXeO1/LcwnQQk1K9FNq727wRYiWT7Cr9G1 8Z/sOxTe4wtk1NPL+x43ekuNaLXvpe8/PiFyVFaf9GLT0ztnqgtJNFxE7EW4d3Slj95/ tUdI5UhUcholr4ZnGSZikbXyMA+GnSNhj60q/63EIiNoJ3tj+/Ae1Ra+53ufWQJfSzq0 S5lH/n4rkE07WAE88lmK6RdEK9Q7lWLbKMXkqLRQwVI7dl1iIasiHgwWe8bxrN/WnQrt v/vx4c27yjDaB3hSQesgn/vWxiZHcBxAwZuwbOCP/VUW6cvp3fFvoPHCJv8bnR+WFCK5 0ltQ== X-Gm-Message-State: AOJu0Ywrm09SNbtI1TAaI0+ppwFpeX7TyuVkBaHeF5T8r3Mzrwe1KlnS QchS6UeYs0oOK7lV+hwinAXRtPfd9IW4KTHCofAvveNb1M6ZYjLhsXP9Wr9Fsjff/Gf2H7Q9z+c dtT5NS9n3BNLmIYGxLlEQf96KJiT9H1OCe6iJ X-Gm-Gg: AZuq6aLu+QX1Zo8nyKulXooWiR4tDGtr8B0QpJZCqCU3JP3lTW6dXZzh06BkYonQ/me 9Tm/Anr2/DOe7gUyggsBj19iF83jC9MprD+h9jXguaOGXy/ev5Rl5mI9+y2uSOMgxSIOtWjBGhj Nz0KVeVumHUNhIcQYF84ZUhF4nK9pkf6M5/8+5xysSQq8OSTJKND8VrhSgLWh/4Nr4X3ryv8s0k TzD7PMeha3NMX0kCJmzXXEeyyHX7NzRbwhuIJfGzj45O5hiIHEWsWVOixuyPHMKUBdhNVAD X-Received: by 2002:a05:6820:1b0a:b0:659:9a49:906b with SMTP id 006d021491bc7-662f20aa248mr1357197eaf.54.1769532754152; Tue, 27 Jan 2026 08:52:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Tue, 27 Jan 2026 09:51:58 -0700 X-Gm-Features: AZwV_QicBgR4ir4yT6AYlYHtF6Z-w4hBiFB-z0Qg1iaaHS4qnAB6lMYxBJSZ9Ao Message-ID: Subject: Re: docs: warn about post-data-only schema dumps with parallel restore. To: vaibhave postgres Cc: pgsql-hackers@postgresql.org Content-Type: multipart/alternative; boundary="0000000000003acf250649617394" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003acf250649617394 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2026 at 10:23=E2=80=AFPM vaibhave postgres < postgresvaibhave@gmail.com> wrote: > Hi hackers, > > Following up on the discussion in [1] about pg_restore failing to restore > post-data items due to circular foreign key deadlocks. > > I=E2=80=99m attaching a doc patch that adds a warning about using post-da= ta-only > schema dumps together with parallel restore. > > Thanks. > > [1] Re: pg_restore: fails to restore post-data items due to circular FK > deadlock - Mailing list pgsql-bugs : Postgres Professional > > The note element would align with the sibling para element. Not a fan of the patch overall though. I'd want to add something to pg_restore noting that use of --jobs for constraint restoration needs schema information to compute the restoration order. There is also just a lot of detail here when something like: Consider always combining pre-data and post-data in the same command so that parallel restores have the necessary dependency information to create constraints in parallel. Any other content related to this probably belongs in the Notes section. David J. --0000000000003acf250649617394 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Jan 25, 2026 at 10:23=E2=80=AFPM = vaibhave postgres <postgresvaibhave@gmail.com> wrote:
<= div dir=3D"ltr">Hi hackers,

Following up on the discussi= on in [1] about pg_restore failing to restore post-data items due to circul= ar foreign key deadlocks.=C2=A0=C2=A0

I=E2=80=99m = attaching a doc patch that adds a warning about using post-data-only schema= dumps together with parallel restore.


The note element would align with the sibling para element.

Not a fan of the patch overall though.=C2=A0 I'd want to add som= ething to pg_restore noting that use of --jobs for constraint restoration n= eeds schema information to compute the restoration order.

There is also just a lot of detail here when something like:
=
<para>Consider always combining pre-data and post-data i= n the same command so that parallel=C2=A0restores have the necessary depend= ency information to create constraints in parallel.</para>
Any other content related to this probably belongs in the Notes = section.

David J.

--0000000000003acf250649617394--