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 1vqx4y-003u76-03 for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 17:35:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqx4v-00FiCY-16 for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 17:35:41 +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 1vqx4v-00FiCQ-02 for pgsql-general@lists.postgresql.org; Fri, 13 Feb 2026 17:35:41 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqx4s-00000000U3P-23O1 for pgsql-general@postgresql.org; Fri, 13 Feb 2026 17:35:40 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 77629EC02FF; Fri, 13 Feb 2026 12:35:38 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 13 Feb 2026 12:35:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1771004138; x=1771090538; bh=B2bAxou0k5b/j4ltbxNhp/UgDtiiAM9kMDNvIOOHtkA=; b= eQdsEiY14qKHI7aHMI/vER2ZVyjZQ1BuHqEIrboRLTZIivCL/2KfwcacZXjoutK3 Qe4T+SO5a65yIYhUdFdmlK8CQ7TgAVgxkh5Dh94g/pwzebWOOO52SQdNt1mEBTqN X9CS3QNLr/akgvKDNv8csisHx0JIfe9eo/5YRU8YEbrjdqlQMeM/iU3a1JlM5RfJ nTpvjikB2p1CeKTmW0mlawzsfLfZMz2o5dW5wwH/dMsWDu2uUehlFJg7DrJVxPmj 76KWym6U7IuITNklvxCyX4q29Lu/xbeXuFJ3wM+v/bup3XBqgLnGf7X5TIKCLg+O izwovnADOyTOkws0zt0arw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1771004138; x=1771090538; bh=B 2bAxou0k5b/j4ltbxNhp/UgDtiiAM9kMDNvIOOHtkA=; b=JJEgspe/uJfaSA4Ls xU0hdPxViOXYG7gmYHJpPytq/wdhkpsT1ck8tLjHnuNPGkPfM2izhI5vddWv0E+u qzrWCYFZYDSlzmqCi7S0Hj8LmeBuT/87ygAfYu1Dh3gspMnhh70IMx0WKScwHuen uyfkPg3b6QMIDyIMk+WFmkvGkWYWnzOM9HigkEUOlLYqvV8PvhyxRW03XRLaFWTd JK9djD0LhtXr/vnUMgai0CEYM6Bx7lz/EoSvYHL90bHmfP6QY3qVnU2oAhWzoX8J wH/pmlpOOMmVpGjCbrv9qHqFE/jazGUwUhv9yk8RvhsuSijmDEL7NQVNB8cDdyxj AJZEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdekkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffelgeeifefgve duhedthfekuedtffejveegffegjeevtdehgfduieetfeehjeehnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtoheprhhonhhljhhohhhnshhonhhjrhesghhmrghilhdrtghomhdprh gtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Feb 2026 12:35:35 -0500 (EST) Message-ID: Date: Fri, 13 Feb 2026 09:35:31 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_restore failed on foreign key constraint To: Ron Johnson , pgsql-general References: <6511b21d495f1c010f05ae9841ee3fdc649dcff2.camel@cybertec.at> <9dccf4f8-2d45-4e6e-a374-1de66d6cc243@aklaver.com> <2263e480-ce7c-4e85-bc90-ba095d4711db@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/13/26 8:40 AM, Ron Johnson wrote: > On Fri, Feb 13, 2026 at 11:14 AM Adrian Klaver > > Un-confuse me, how do the below relate?: > > "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=2073 is in the source access_email, so I've got to > figure out why it's not being loaded into the target." > > and > > "Some tables aren't being dumped at the source" > > > Table name            Source Dumped   Target Loaded > public.access_email   No              No > public.rel_user_email Yes             Yes > > Thus, while new and modified records are being added > to public.access_email at the source, they are not making it to the > Target database.  That plus "--disable-triggers" lets > the public.rel_user_email loads succeed on the target even though it > breaks RI. This means you know what the issue is now? > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster!