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 1so2oO-007sB0-Kr for pgsql-general@arkaria.postgresql.org; Tue, 10 Sep 2024 15:29: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 1so2oO-00ExaG-B2 for pgsql-general@arkaria.postgresql.org; Tue, 10 Sep 2024 15:29: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 1so2oO-00ExXA-07 for pgsql-general@lists.postgresql.org; Tue, 10 Sep 2024 15:29:48 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so2oL-000U70-7T for pgsql-general@postgresql.org; Tue, 10 Sep 2024 15:29:46 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 748722A14D6 for ; Tue, 10 Sep 2024 08:29:44 -0700 (PDT) Date: Tue, 10 Sep 2024 08:29:44 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Removing duplicate rows in table In-Reply-To: <32765388-836c-4c00-bad0-665f0aa77ea8@aklaver.com> Message-ID: <19803246-8b24-5055-ef26-adf7ade3eb@appl-ecosys.com> References: <32765388-836c-4c00-bad0-665f0aa77ea8@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 10 Sep 2024, Adrian Klaver wrote: > Is there a Primary Key or Unique index on this table? Adrian, No. It didn't occur to me to make the project number a PK as this table is not related to others in the database. But, yesterday it occurred to me to make the proj_nbr a PK to eliminate future issues. Thanks, Rich