Re: [PATCH] - Provide robust alternatives for replace_string

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Asim Praveen <pasim(at)vmware(dot)com>
Cc: Georgios <gkokolatos(at)protonmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] - Provide robust alternatives for replace_string
Date: 2020-08-05 13:31:10
Message-ID: 20200805133110.GA18474@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020-Aug-05, Asim Praveen wrote:

> Please find attached a StringInfo based solution to this problem. It
> uses fgetln instead of fgets such that a line is read in full, without
> ever splitting it.

never heard of fgetln, my system doesn't have a manpage for it, and we
don't use it anywhere AFAICS. Are you planning to add something to
src/common for it?

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Sharma 2020-08-05 13:42:02 Re: recovering from "found xmin ... from before relfrozenxid ..."
Previous Message Robert Haas 2020-08-05 13:14:36 Re: Can a background worker exist without shared memory access for EXEC_BACKEND cases?