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 1vqvfU-003ORM-2D for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 16:05:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqvfT-00F5hr-35 for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 16:05:20 +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 1vqvfT-00F5hh-20 for pgsql-general@lists.postgresql.org; Fri, 13 Feb 2026 16:05:20 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vqvfQ-00000000Vuy-3KsD for pgsql-general@postgresql.org; Fri, 13 Feb 2026 16:05:18 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-45f004e7d71so2291570b6e.1 for ; Fri, 13 Feb 2026 08:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770998714; cv=none; d=google.com; s=arc-20240605; b=I+UNWbkDqGQL0hx1cSiWTxBeEdPMs+T8eRJYpp4RFG1rcJ5Nw1ZNJSEsPO79zQVyZ2 1LdYYI6XmwYZLmVVoroBM8CK8q3i6D3mmCS6wez13f0bsd564lcSz1TIQT7Q7wFdDVWG DNCa9k2XFBj+4cZj/BVpIZa1nA4dpjF9uHRn58/hjeTY+GuXQxVuXU0O7WHUn2qgwkRu lHUg8X5qcBVC4U9wmvhkXnpIZEPzNwo12Ka8ZmFAtMFkQrJi/i0QGIuMIMMJcemiq4BV l1G6Keq2ZS9VZmQQ3VrO/AuAe8BYKKPiS6k0mZDv36NXWe43w3482Py1lWI7eLV4Cm6R khnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=58Dn7XQhPU2bY7ErqCl4qOh4C0vXhopAYhePaDBD0/4=; fh=KNSq+t9BltSXFnT3Yof/aKGBtqxeA+bTALiYdvTslaY=; b=bY8VVpaPK7DOzHPCeSUr94TXAWSfqOH3sBNtxkhw1afBQAIMrwWxi0Kdnzv3y4k0Vk irxWnKRpgJmAs8TXhKmODwzydXmayn5uKGNxnTJwV2awZ7iplJBdgzlrH9eTcKxP4rS6 LKrlRb6KnEsvie3siFJxgO0ixl1cASd1GMJZH8BejF9ae/I5yfZpxp2usoAkFq4XdEpC +6QvwOb/jy9BmYmFrBcz994tuhzSaRl5UAqj64PeYi9M3QjXx36A+ieFRWTUs9K7OK2k A7H5OCwI1yiOhYW+LdyGIb8U1LSY0qTAgDgDogkJ+4GXfor2P9qDeP2jldLeIH4mj4On 3Jkw==; 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=1770998714; x=1771603514; darn=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=58Dn7XQhPU2bY7ErqCl4qOh4C0vXhopAYhePaDBD0/4=; b=Vwz7j5waAO0z9zCB413r3tO0iVnBZ7m88oB9Izxl5RO0OKvN8793+XiNfqfM0LmL/o syrlq4thlkp5CNtEaGmb3cJKAN/O90f2EE4M8N7VP5K0rbqFiPjCIUtF0nkeq3fiiYsT xFo8LIvDjZDchAB0ov1A7h3oy0TILFjGlgxN5GkWR0SZB82ksitqmf1j+NLhUAhtQ3bz IvPrpcg7PlxF5EeYqgxWHpVn5SHuroGR1VJ2jLOBPEKkxv4bxgY+Tl9IApz1k2kDh6lV YaUUqBkWgKp85voMEJopCnqHhRXD8FbRNNM06MiNGPsp43Xn3OhIGFzDxR05hZ2Kxt7F 2Kng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770998714; x=1771603514; h=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=58Dn7XQhPU2bY7ErqCl4qOh4C0vXhopAYhePaDBD0/4=; b=JXT6ap6kXo/bgw/h7F4fepaPf2nZdOMU6EoUvfggdh/CYp2fZLzDYar7DkI5rLQp2x +hN1cTFEy+EF1Mi82Uy+YsxaSpsLnAtH6XtNrqtAiolK33KTCUOOTXqoOAz/XBebGc9r yEHNxe/er8o5+w9ycSeE4Hv49hAY2Ng4DSPyoidcC2AQB8R2s8bEPDJkj7FfLlgeHLam NRf/9shRT+Av6FerMGlXw60zNocjLifwjSIroWMC3HTRNiCzdBLfBkGe0rxYgBKV1oNQ lYgGeoOjka2hch9K+XVnm15DLpiRmRpErCUfhYdor8V5Ii9xT1bhUzYyWS0HxO1vI9D0 sOzA== X-Gm-Message-State: AOJu0Yy0EkKwDdlLa7YUkkC+1SzNusfKEhPcEZHX1tDoSmimrO5nPMYF Y4PNRNAvzB/d7GxupRWdiXm/aKggKfdlZ5BJWPw4lGCHF0VwX9l1K3/sYZiaIjn6WjeVQZSl+w3 GexCFtBCo7PUUPmG5D9vbcle4YYH5UNIiYA== X-Gm-Gg: AZuq6aI1AC6scDBNPoaVe/iavcbZfnlIv/B6kJdr2FRXyXBL1AsaQrfZ/V1VzG0TIxd hb49xcbIqPAjROIiTsM7U+Owm2ELc3ROVMhhRFzjGzMpi4w07TiMGxeRdTj2+YdOqgk3ulHbptV g1dJELjXVt57KL7FEs/gX053sLr/DpFlTmY57kWUnE7MubUH8ReHDCGm0FCfywUe83GrodOZ2kc Xm0m6cdcJEhWA5arWGiov4dtxPlul4H+GljQK/uu/qvI7eN0vCCufrcf+Zs6ppPLRhw/IBp6TYM KMgxDftq X-Received: by 2002:a05:6808:2444:b0:462:e390:cf3f with SMTP id 5614622812f47-463b0601902mr371105b6e.28.1770998714062; Fri, 13 Feb 2026 08:05:14 -0800 (PST) MIME-Version: 1.0 References: <6511b21d495f1c010f05ae9841ee3fdc649dcff2.camel@cybertec.at> <9dccf4f8-2d45-4e6e-a374-1de66d6cc243@aklaver.com> In-Reply-To: <9dccf4f8-2d45-4e6e-a374-1de66d6cc243@aklaver.com> From: Ron Johnson Date: Fri, 13 Feb 2026 11:05:03 -0500 X-Gm-Features: AZwV_QizUbiOVKDKNN2j1TXW9sUYV614Dl-J3HPkHYz1XvcVYUoPI6HsaYa7WGE Message-ID: Subject: Re: pg_restore failed on foreign key constraint To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000003fde3b064ab6c55e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003fde3b064ab6c55e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 13, 2026 at 10:55=E2=80=AFAM Adrian Klaver wrote: > On 2/13/26 06:18, Ron Johnson wrote: > > On Fri, Feb 13, 2026 at 1:43=E2=80=AFAM Laurenz Albe > > wrote: > > > Turns out that there's a nightly cron job that dumps this (and other) > > tables with the "--data-only --disable-triggers" options and then does > > "psql -Xaf mumble.sql" to load them into this database. > > > > But access_email_id=3D2073 is in the source access_email, so I've got t= o > > figure out why it's not being loaded into the target. > > Is it in the dump file from the source? > Some tables aren't being dumped at the source; Thus, the missing records. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000003fde3b064ab6c55e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Feb 13, 2026 at 10:55=E2=80=AFAM = Adrian Klaver <adrian.klave= r@aklaver.com> wrote:
On 2/13/26 06:18,= Ron Johnson wrote:
> On Fri, Feb 13, 2026 at 1:43=E2=80=AFAM Laurenz Albe <laurenz.albe@cybertec.at
> <mailto:
laurenz.albe@cybertec.at>> wrote:

> Turns out that there's a nightly=C2=A0cron job that dumps this (an= d other)
> tables with the "--data-only --disable-triggers" options and= then does
> "psql -Xaf mumble.sql" to load them into this database.
>
> But access_email_id=3D2073 is in the source access_email, so I've = got to
> figure out why it's not being loaded into the target.

Is it in the dump file from the source?

Some tables aren't being dumped at the source;=C2=A0 = Thus, the missing records.

--
Death to <Redacted>, and butter sauce.
Don't boil m= e, I'm still alive.
<Redacted> lobster!
<= /div>
--0000000000003fde3b064ab6c55e--