Add pg_strtoupper and pg_strtolower functions - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Add pg_strtoupper and pg_strtolower functions
Date
Msg-id CALj2ACW4k3BHafYZ2RsqOEosY53VwSmCY8aT5Swt7ZDTFpxAHQ@mail.gmail.com
Whole thread Raw
Responses Re: Add pg_strtoupper and pg_strtolower functions
Re: Add pg_strtoupper and pg_strtolower functions
List pgsql-hackers
Hi,

I came across pg_toupper and pg_tolower functions, converting a single
character, are being used in loops to convert an entire
null-terminated string. The cost of calling these character-based
conversion functions (even though small) can be avoided if we have two
new functions pg_strtoupper and pg_strtolower.

Attaching a patch with these new two functions and their usage in most
of the possible places in the code.

Thoughts?

Regards,
Bharath Rupireddy.

Attachment

pgsql-hackers by date:

Previous
From: Baca Radim
Date:
Subject: Item compression in the Gist index
Next
From: Ashutosh Bapat
Date:
Subject: Re: Progress report removal of temp files and temp relation files using ereport_startup_progress