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 1ubm3Z-0055nw-F7 for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 20:15:17 +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 1ubm3X-0050JR-HO for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 20:15:16 +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.94.2) (envelope-from ) id 1ubm3X-0050JJ-6V for pgsql-general@lists.postgresql.org; Tue, 15 Jul 2025 20:15:15 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubm3V-007vx1-20 for pgsql-general@postgresql.org; Tue, 15 Jul 2025 20:15:15 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 20D0D2A14D6 for ; Tue, 15 Jul 2025 13:15:11 -0700 (PDT) Date: Tue, 15 Jul 2025 13:15:11 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Removing terminal period from varchar string in table column In-Reply-To: Message-ID: <82b6a40-ccf5-2b2a-815a-b5673dfd748b@appl-ecosys.com> References: <8f5b6f90-cbb7-bffc-c15-134dcc6bce4@appl-ecosys.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, 15 Jul 2025, Thom Brown wrote: > UPDATE companies > SET company_name = rtrim(company_name, '.') > WHERE company_name != rtrim(company_name, '.'); Thom, That makes sense. The web pages I read assumed I knew to use the UPDATE command. As this was the first time I needed to clean column content I didn't assume that update was the appropriate mechanism. Now I do. Thanks, Rich