Re: Removing terminal period from varchar string in table column

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Removing terminal period from varchar string in table column
Date: 2025-07-15 20:15:11
Message-ID: 82b6a40-ccf5-2b2a-815a-b5673dfd748b@appl-ecosys.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2025-07-15 23:39:29 Re: query_id: jumble names of temp tables for better pg_stat_statement UX
Previous Message Thom Brown 2025-07-15 18:19:18 Re: Removing terminal period from varchar string in table column