Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpZqU-0006BZ-H3 for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Feb 2019 14:31:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gpZqT-0004nU-Aj for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Feb 2019 14:31:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpZqS-0004im-Un for pgsql-hackers@lists.postgresql.org; Fri, 01 Feb 2019 14:31:05 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpZqP-0007Lw-0r for pgsql-hackers@postgresql.org; Fri, 01 Feb 2019 14:31:03 +0000 Received: by mail-ed1-x544.google.com with SMTP id y20so5564246edw.9 for ; Fri, 01 Feb 2019 06:31:00 -0800 (PST) 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=bjKLKKbKDYrmph7LShiy47DZB2IJz5FlOR3s+NOFhLk=; b=oFh+PP8dBNRaPcY81gNVhTFzXfHBuqb8V0Q1NHIof2FBWwNqUwVo3RHe6b1h90pKZ+ yrgIIHhFRQyMqaOZQ6wYSJzmeBCE6ftG+da2vwr8hb3QFOPw4MICVvj/O2VK99zDOXY/ aKWH8CJqCWidsQ2FVA1MwdyoktF39vR7DGecVg3Js6Eux/ecF2ykrPbWnr73x39cJp4u b/k5jvJXuqusF3CWEUe6pTAV/ANlUXxp/kjE72GvOHkZnjpPT0CPE0tKnFU9gV9SG21U OCeJto89B5K0Q5kW3S9eUs7tq/y+lwPScldNXH0xoXXWL5jeTwh5695q1cHoLBcgeHeh 53sA== 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=bjKLKKbKDYrmph7LShiy47DZB2IJz5FlOR3s+NOFhLk=; b=mmHgcq3eMIzHWIYuvjNYEuZVWiX1HSkroD9p20gdq+Os4d8TgznWiTnSwWf9Hx3nGj fc8iuYLtUq6Xz62eJJoFuwm29MJKqhLs5WudxFXtzKc/ETNQJXQcoXVmVrqeNxTUhSEy qBLMsGd0ZpbRt1A4aRUZhD4Hz0Uc8oG9ZZZgoC5gG8hxHCaP+MiJNz/aqJBKCuH1gyUe 8SMGIq+B1d46C3i7unG6yLUrSkfDXvuKgoqFLZciHclF9/DQuMs3q76qoI3f3xOSPNvO aFOSvIU2ULXFRC0mCWStiuvyVUkGm2Ma2+QDV19KyAn8NdbK9FhPSMxa2BJaV05MiFEO EN6A== X-Gm-Message-State: AHQUAuaoFjoE9b16kGHiOU5Exe9BZRnlvizUE/CWYh/WoaMhwKNolb4I vPoUTj5Uw79l/ci224eq3YEBbA== X-Google-Smtp-Source: AHgI3IYE8/kYBw279xqDvcBWCtsiFDhBiuT+6U6RMSh4TQL9KjQfgfGFIhLgbWJs7MSj0nngF3Cxkg== X-Received: by 2002:a17:906:2988:: with SMTP id x8mr11337724eje.105.1549031459342; Fri, 01 Feb 2019 06:30:59 -0800 (PST) Received: from alvin.alvh.no-ip.org (83.224-78-194.adsl-static.isp.belgacom.be. [194.78.224.83]) by smtp.gmail.com with ESMTPSA id ay20sm1277974ejb.32.2019.02.01.06.30.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Feb 2019 06:30:58 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 18B209B2; Fri, 1 Feb 2019 11:30:58 -0300 (-03) Date: Fri, 1 Feb 2019 11:30:58 -0300 From: Alvaro Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: Andres Freund , Tom Lane , Chapman Flack , Amit Khandekar , PostgreSQL-development Subject: Re: ArchiveEntry optional arguments refactoring Message-ID: <201902011430.2cm3lirklmed@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: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-01, Dmitry Dolgov wrote: > > On Fri, Feb 1, 2019 at 12:33 PM Alvaro Herrera wrote: > > > * Use NULL as a default value where it was an empty string before (this > > > required few minor changes for some part of the code outside ArchiveEntry) > > > > I would rename the function to sanitize_line() and put those comments there > > (removing them from the callsites), then the new argument I suggest would not > > be completely out of place. > > Yes, sounds pretty reasonable for me. Thanks for looking -- pushed. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services