Refactoring code stripping trailing \n and \r from strings - Mailing list pgsql-hackers

From Michael Paquier
Subject Refactoring code stripping trailing \n and \r from strings
Date
Msg-id 20190801031820.GF29334@paquier.xyz
Whole thread Raw
Responses Re: Refactoring code stripping trailing \n and \r from strings  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Global temporary tables
Next
From: Thomas Munro
Date:
Subject: Re: Commitfest 2019-07, the first of five* for PostgreSQL 13