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 1tpst2-00DiOA-PN for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 17:50:28 +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 1tpst1-000PAU-Ik for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 17:50:27 +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 1tpst1-000PAM-8H for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 17:50:27 +0000 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpssz-0019DA-1Y for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 17:50:26 +0000 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-2c11ddc865eso1700859fac.3 for ; Wed, 05 Mar 2025 09:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741197024; x=1741801824; darn=lists.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=/+y6jWSp6KFumE/jZvZqk9ITQuCUcOa/hN87bM60JeQ=; b=YikU/PuG15BXrN1AtsQJ3F4nyURlJPm9YMXVJWMiuVjUxK+nCa5LSmqZHPhAKtShdx UGq7oU+eluKTDlWC1jBnBQpxTcL1OltBSDNZQCiyq/sO0VtKvoRxCNYKfuYbLaBKh4WX cljRoOeEOzKh54eHaqhByP9rK8seigeb3sldCPDqZvg5+a9f+F+biI0ZzD/qQAsfZKZJ 0KNNurgMJArf6X6H6WIZnBirbC3/rqAYqAgDzopCIlRMgbVkvYXAHoyyaKwImByayrbh OUixoe8REM8bBhdfLvgK/JeW/hJOgLNoRjisvGwa9+a7pvGgmGOb5hNRzSne6i7yXYja IT5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741197024; x=1741801824; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/+y6jWSp6KFumE/jZvZqk9ITQuCUcOa/hN87bM60JeQ=; b=fkwbgAqsAtZLyRF/KOVgqxQ/V9KqIouP9Aro3qI5O+GHi41AsYpQxaoHKXLcuugRzZ ZZGFynxXw2mkEZb858OiQjotnZBvET+6/9xGecz2wYQMm//dNN03Ny/kNZxE+WekIFoo TRjKRm+YLdbAwHvironpvRnYtfUwbwtcn5U7wkwI3OGDJNmbNZaFivlBcEJNLxRQm3Yc qrbvv0wkyEDRlIIuVb6sYBu2Jvcmh7C4Ah6XSyqMYfiuH7gVsgh7hTKnR0NnMh847R0k hr5vKTTBYMMNKyfUwQDtUeUX/7RnEgtb10FgC+pwIvygmVL6G2vWRkqjI5IKb01Y6mkR rmFw== X-Gm-Message-State: AOJu0Yw6TJIAekSQ3A5fdbftf/DYbUXG6F8R7taXexWlmDJ6U/zfByFF 55HKa+Pi56TmFpGhV8S3BAxM+4VOGZK3VtvEM4f/nldlR8b9fhoa7e82GGMMRveNyDM2ljrciF6 upAO21uvusI6biPF+z6NOg8xZwB12+A== X-Gm-Gg: ASbGnctfGWRlmh/1Q9+vpUPrRVMLoAF2xaPAkuJMVgP5Nae/5PNCXDUalUm5B2Wunpi YwwyuvptJeI6D6U4SbHSZKi6nsu/D62ZShd1o91BBbGidDxNI/C3DwMsNi6poRpSr/KpQ6GhCJo ndlrDsQjXILIKu/3PWtHsfB21gC2s= X-Google-Smtp-Source: AGHT+IEbOcKWxdXXHqIO3Ja/vD39vQNuo8RZl/lTdVaYmk1uiDx73Y4yYpshLsE03Cvr3kZthmX38NBDd5131I4n8qU= X-Received: by 2002:a05:6871:e48a:b0:29d:c624:7cad with SMTP id 586e51a60fabf-2c21c8e562dmr2290278fac.3.1741197024662; Wed, 05 Mar 2025 09:50:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Wed, 5 Mar 2025 12:50:13 -0500 X-Gm-Features: AQ5f1JqCbpXROu9xg9fx-a5QOR11_1KoX0oS1HDqoruolstubOjjGPHddhxocKM Message-ID: Subject: Re: Duplicate Key Values To: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000023a2b1062f9c06dd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000023a2b1062f9c06dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 5, 2025 at 12:36=E2=80=AFPM mark bradley wrote: > Although I did not enter them, somehow duplicate primary key values have > appeared in one of my tables. > Is it a text/varchar column? Has the distro been upgraded "recently", or maybe streamed from an older Linux system to a newer Linux system? > I can't remove the offending rows because the key is a foreign key in > another table. > > What to do? > Are the records completely (i.e., all columns) identical? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --00000000000023a2b1062f9c06dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Mar 5, 2025 at 12:36=E2=80=AFPM m= ark bradley <markbradyju@outl= ook.com> wrote:
Although I did not enter them, somehow duplicate primary key values have ap= peared in one of my tables.=C2=A0

<= /div>
Is it a text/varchar column?=C2=A0 Has the distro been upgraded &= quot;recently", or maybe streamed from an older Linux system to a newe= r Linux system?
=C2=A0
I can't remove the = offending rows because the key is a foreign key in another table.

What to do?

<= div>Are the records completely (i.e., all columns) identical?
--
Death to <Redacted>, and= butter sauce.
Don't boil me, I'm still alive.
<= ;Redacted> lobster!
--00000000000023a2b1062f9c06dd--