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 1ubjwD-004dgS-AW for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 17:59:33 +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 1ubjwB-004D72-EV for pgsql-general@arkaria.postgresql.org; Tue, 15 Jul 2025 17:59:32 +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 1ubjwB-004D6p-48 for pgsql-general@lists.postgresql.org; Tue, 15 Jul 2025 17:59:31 +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 1ubjw9-007v1g-1s for pgsql-general@postgresql.org; Tue, 15 Jul 2025 17:59:31 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 3BF942A14D6 for ; Tue, 15 Jul 2025 10:59:27 -0700 (PDT) Date: Tue, 15 Jul 2025 10:59:27 -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: <8f5b6f90-cbb7-bffc-c15-134dcc6bce4@appl-ecosys.com> References: 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: > There are various options, but perhaps just use rtrim. > rtrim(company_name, '.') Thom, I looked at rtrim() but didn't see where to specify the table name. Would it be `select * from table companies rtrim(company_name, '.')'? Thanks, Rich