Re: Removing terminal period from varchar string in table column - Mailing list pgsql-general

From Rich Shepard
Subject Re: Removing terminal period from varchar string in table column
Date
Msg-id 82b6a40-ccf5-2b2a-815a-b5673dfd748b@appl-ecosys.com
Whole thread Raw
In response to Re: Removing terminal period from varchar string in table column  (Thom Brown <thom@linux.com>)
List 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



pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: Removing terminal period from varchar string in table column
Next
From: Kiran K V
Date:
Subject: Re: Query regarding support of test_decoding and PGReplicationStream with Standby Logical Replication