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 1ts5QD-00F4FU-No for pgsql-general@arkaria.postgresql.org; Tue, 11 Mar 2025 19:37:49 +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 1ts5QC-005TaH-Ey for pgsql-general@arkaria.postgresql.org; Tue, 11 Mar 2025 19:37:48 +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.94.2) (envelope-from ) id 1ts5QB-005TY9-Jq for pgsql-general@lists.postgresql.org; Tue, 11 Mar 2025 19:37:48 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ts5Q8-002HkK-0v for pgsql-general@postgresql.org; Tue, 11 Mar 2025 19:37:45 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id 583C12540148; Tue, 11 Mar 2025 15:37:43 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 11 Mar 2025 15:37:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm3; t=1741721863; x=1741808263; bh=8H7THJTLWCbLHFb7rUuhe0zU9cOXNXEz9imjs5VsfvQ=; b= XTRfDzDrpAkAphYIXo/qDWIe2fNuFZtqKlsxf44eO3nIjvHMZ7L5PfCXjsvasAPP 5VlRs0DugcDosWFvMca6dh+ClGP+bpZ+n9j1qsPf9bgZlanmLU0JQXuTJkdOiros /9ghZL+DabfHzX0JddVyq6+6nz4S8D/B+0evJk7LkXP/fPbZeqYLMR1BPncCDn3c 3NmtC4E120xile8SdPuhzinfeywM2WGMzkjEl0YBeRwnEAkanlZBGsdfWUeWjEyb 7W1zsz+37hLCU6ANZrU81H1Iu4dfFdxBRHBNXl0C4vGbplfdIZSrv9Tj+8ZwZiID dKgKbcVllGaktCxX1qxhhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; t=1741721863; x= 1741808263; bh=8H7THJTLWCbLHFb7rUuhe0zU9cOXNXEz9imjs5VsfvQ=; b=N RmRDZLtqbyMmUqJt5WiWXfw1qk1XaE+GZqpP6EWorqmW1DHDtT+dDRtwPl3Dkl6c ZY81rniyksTMEg7x2OkXxuWAgEvLT9gHDzFVyWkjK88AD4Z+GIlEh1yioMsUCumv PRiVmC9kVGEra77OYmgXJIeUkaJPf7TNEeIXIptQ9/B8le2hXSt74KAcYVa9W+Jr ftmkdm+qEdK/WGbXx7JtK977KBF5t2TZ8n06j81T5xr6Xond8zDJ3TIG0Y1lUIGc 7AkHpxKP2TmWpl/R/H8sBM79l8Y5kOVURsy83XO1Dlkj2l1q8siFXuHvagI35uHK owPoAb20X/uxOwDu4U9Zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvdeftdelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghnucfmlhgr vhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtf frrghtthgvrhhnpedvhfffhffffeehueetfefgiedujeevjeffgfetfeehfeetgeegleek veevffffkeenucffohhmrghinheppggrmhgriihonhdrtghomhdprghmrgiiohhnrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggu rhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvd dpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgrrhhksghrrgguhihjuhesohhu thhlohhokhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsth hgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 15:37:42 -0400 (EDT) Message-ID: <9203d0df-0ddd-4564-a985-59bcfcf1d294@aklaver.com> Date: Tue, 11 Mar 2025 12:37:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Duplicate Key Values To: mark bradley Cc: pgsql-general References: <75b33741-ee99-4524-b63a-edad21c1266d@aklaver.com> <9d919848-3fe1-46fd-b343-c5f2931864f7@aklaver.com> <513ddbee-135c-4af2-b6f6-acca667b8d09@aklaver.com> <84aac7bf-5638-4f1f-9772-ace0ea27e848@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 3/11/25 11:52, mark bradley wrote: > > > there is an index on node_id as it is the Primary Key. > > Why do you think there is not? > > My mistake, I misread the output from \d dataset > > > > Can you elaborate more on point 3. > > Are you calling the Foreign Key relationships subclassing? > > > Although I did not explicitly use Postgres to declare inheritance, > logically speaking table /dataset/ and /processing _node/ inherit or are > subclasses of /node/ because they are subclasses of /node/ in a dataflow > diagram. > > > In terms of keys, this is accomplished by having the /node_id/ key in > the /node/ table appear as a foreign key and as a primary key in both > the /dataset/ and /processing_node/ tables. You will need to show the schema definitions for: node dataset processing_node Best to do using psql \d Also in from previous \d dataset there where NOT VALID FK definitions. Did you ever run VALIDATE CONSTRAINT against them? > > > > Is there anything in Postgres log at the time you did the above that > showed it did more then a REINDEX? > > > Not that I can tell. > > > > > Best regards, > Mark Brady > _amazon.com/author/markjbrady _ -- Adrian Klaver adrian.klaver@aklaver.com