pgsql: copyfromparse.c: use pg_ascii_tolower() rather than tolower().

Started by Jeff Davisover 1 year ago4 messagescommitters
Jump to latest
#1Jeff Davis
jdavis@postgresql.org

copyfromparse.c: use pg_ascii_tolower() rather than tolower().

Avoid dependence on setlocale(). No behavior change.

Discussion: /messages/by-id/9875f7f9-50f1-4b5d-86fc-ee8b03e8c162@eisentraut.org
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c787a24e7e220a60022e47c1776f22f72902899

Modified Files
--------------
src/backend/commands/copyfromparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

#2Robert Haas
robertmhaas@gmail.com
In reply to: Jeff Davis (#1)
Re: pgsql: copyfromparse.c: use pg_ascii_tolower() rather than tolower().

On Tue, Jun 10, 2025 at 2:24 PM Jeff Davis <jdavis@postgresql.org> wrote:

copyfromparse.c: use pg_ascii_tolower() rather than tolower().

Avoid dependence on setlocale(). No behavior change.

Discussion: /messages/by-id/9875f7f9-50f1-4b5d-86fc-ee8b03e8c162@eisentraut.org
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>

All 3 of these commits seem like things that could just as well have
been done after we branch.

--
Robert Haas
EDB: http://www.enterprisedb.com

#3Jeff Davis
pgsql@j-davis.com
In reply to: Robert Haas (#2)
Re: pgsql: copyfromparse.c: use pg_ascii_tolower() rather than tolower().

On Wed, 2025-06-11 at 16:07 -0400, Robert Haas wrote:

All 3 of these commits seem like things that could just as well have
been done after we branch.

Yeah, I called out my mistake here:

/messages/by-id/60e8c6d0a6c08e67f15dbbe9e53df0119c710065.camel@j-davis.com

Nobody seemed terribly upset about it so I left them. But for the sake
of ending any confusion I just reverted them. I will reapply them in a
few weeks after the branch.

Regards,
Jeff Davis

#4Robert Haas
robertmhaas@gmail.com
In reply to: Jeff Davis (#3)
Re: pgsql: copyfromparse.c: use pg_ascii_tolower() rather than tolower().

On Wed, Jun 11, 2025 at 6:15 PM Jeff Davis <pgsql@j-davis.com> wrote:

On Wed, 2025-06-11 at 16:07 -0400, Robert Haas wrote:

All 3 of these commits seem like things that could just as well have
been done after we branch.

Yeah, I called out my mistake here:

/messages/by-id/60e8c6d0a6c08e67f15dbbe9e53df0119c710065.camel@j-davis.com

Nobody seemed terribly upset about it so I left them. But for the sake
of ending any confusion I just reverted them. I will reapply them in a
few weeks after the branch.

Sounds good. I don't know if those commits mattered or not; my main
intention was to make sure you weren't planning to keep going. But
short-term revert seems to minimize risk, so +1 from me.

--
Robert Haas
EDB: http://www.enterprisedb.com