Refactoring code stripping trailing \n and \r from strings

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Refactoring code stripping trailing \n and \r from strings
Date: 2019-08-01 03:18:20
Message-ID: 20190801031820.GF29334@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
stringt-crlf-refactor-v1.patch text/x-diff 7.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2019-08-01 04:10:01 Re: Commitfest 2019-07, the first of five* for PostgreSQL 13
Previous Message Craig Ringer 2019-08-01 03:10:40 Re: Global temporary tables