Feature request for INITCAP() function

From: Jeff Gerbracht <jeffgerbracht(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Feature request for INITCAP() function
Date: 2023-12-01 02:08:52
Message-ID: CAEwbS1R8pwhRkwRo3XsPt24ErBNtFWuReAZhVPJwA3oqo148tA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It would be great if there was a way to set exceptions to the 'word'
delimiter list used in the INITCAP() function. For example, I have
hyphenated words like blue-green or possessives and contractions like don't
and cat's tail
These become Blue-Green, Don'T and Cat'S Tail.

Being able to pass in a set of delimiter exceptions like hyphen and single
quote would make this function much more useful for our specific use cases.

Thanks for considering,
Jeff
--
Jeff Gerbracht
Cornell Lab of Ornithology

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Meera Nair 2023-12-01 02:57:34 Query related to pg_dump write to a pipe on a windows client and with compressed format
Previous Message Tom Lane 2023-12-01 01:53:51 Re: libpq crashing on macOS during connection startup