Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE1Fw-0000MC-IL for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 02:15:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kE1Fv-0002Hf-Fi for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2020 02:15:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE1Fv-0002HY-5N for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 02:15:11 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kE1Fs-0006Hd-F1 for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2020 02:15:10 +0000 Received: by mail-qk1-x742.google.com with SMTP id p4so5137755qkf.0 for ; Thu, 03 Sep 2020 19:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qtXoNE5qNoWTvkJaQqfWivVeRubvYErjh5gUh51WVeI=; b=RNXo6/nCeS5X/1mIOCmLJjJk5gBcuomgtkgtuNcPNNk28MpLUgpP7XZOw9Sd/OijlI 24QkbMvWnA7BXOry5bxqek4tmx2x34+1wr6/L/UdV/MGyvfdqFQVHkvZKdgwN50+fcDn liB4gIbpV9sMKj9SoxcywtUt7gTZg/Qysq8ZDjVoZH40wvJTBQ1HNy8rFbnDnWco9Sx+ nfnkTlyZa3iP+3peWAcFe14hknG7D6aOylVN/sE9jK0hl9Pj6ypvM7Y7kRezrriA3HM7 rl7pbsv/X9O669nZ7v9d2Gkexew8HFdMLK+L8aST1nXXUkVetCKE4Q2JSPd8/IL4WBZz ARmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=qtXoNE5qNoWTvkJaQqfWivVeRubvYErjh5gUh51WVeI=; b=Ho/RKqm4vkjL+w5Lt1kFRcWWUVEElYVsrSaaKckSfXKVpcCPM0FtOdFuB9WM9XgMeL f+dfki8BC9rei1d/I/Ooc3XuGWxOVf08n3lC+GUXZMEdgQlwFhC7EevHFKJ8pD9rs5fQ K3PMLv3hIJVMZG+TLi86EFQJtZkbQqOgU5efK3/n7PBq7nU69sBQ+g+H55H7PhHc4x8/ KeLC78gFHe7wrR9M/179cNXdogroaKrC1wXHoxsJbddbM3sxR5l+Nu4i2NFq07/glTqT ZOtuHbsgznsbJHvOOJe0evbOdaBQWHa7A/qUgE6G2+Td25Pd0taYcW5zBkECEplBmCLE OeNg== X-Gm-Message-State: AOAM531GlX3VMXKq/5go05UGATNRBUuZl3rv4fGqMYLwMtGSVZsS8sqD YSZPnpo38GD7v8FhZSHDzU6BogAWAQdPQiPZy4FIJeCVW4JstbdQ5mBfWejsfp9hiO7gATOHimP ez3mMpgHZ42zagt5JtqXjm5/1Y8vTrGfXAhmfgZK4ZdDV6JaNwtXsTsYMwq/IFJu7Zjmeby8RxN E9ukFL5w+2spMb1w/IPVE= X-Google-Smtp-Source: ABdhPJw38P3WTIX/puUroFmhwXxAKhZASo2LO2xuSI1F7NJj/SR+R0kI8nYmn1H462IdG7GwJViF3w== X-Received: by 2002:a05:620a:134e:: with SMTP id c14mr6269053qkl.223.1599185706622; Thu, 03 Sep 2020 19:15:06 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id r21sm3564897qtj.80.2020.09.03.19.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 19:15:05 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EAD422A0FB5; Thu, 3 Sep 2020 22:15:03 -0400 (-04) Date: Thu, 3 Sep 2020 22:15:03 -0400 From: Alvaro Herrera To: Georgios Cc: Asim Praveen , PostgreSQL Hackers Subject: Re: [PATCH] - Provide robust alternatives for replace_string Message-ID: <20200904021503.GA29909@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Note that starting with commit 67a472d71c98 you can use pg_get_line and not worry about the hard part of this anymore :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services