Refactoring code stripping trailing \n and \r from strings
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-08-01T03:18:20Z
Lists: pgsql-hackers
Attachments
- stringt-crlf-refactor-v1.patch (text/x-diff) patch v1
Hi Tom, b654714 has reworked the way we handle removal of CLRF for several code paths, and has repeated the same code patterns to do that in 8 different places. Could it make sense to refactor things as per the attached with a new routine in common/string.c? Thanks, -- Michael
Commits
-
Refactor logic to remove trailing CR/LF characters from strings
- b8f2da0ac5a2 13.0 landed