Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpYYJ-0006sF-4N for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Aug 2018 12:35:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpYYH-0000nn-MB for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Aug 2018 12:35:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpYYH-0000ng-FH for pgsql-hackers@lists.postgresql.org; Tue, 14 Aug 2018 12:35:57 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fpYYE-00045S-2F for pgsql-hackers@postgresql.org; Tue, 14 Aug 2018 12:35:57 +0000 Received: by mail-qt0-x242.google.com with SMTP id f18-v6so20836133qtp.10 for ; Tue, 14 Aug 2018 05:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=sZq7oEQZlKWRDxrgiYabU1Y1op4ScKBoox55q+63sjs=; b=DUasgGeTAVbjQbGHaWVDw6FlSfkltclWLNw2CtBIiixK3mr5XDPXsQfQo8n68TQWqR 2pzEm480PdCn9D3EkkOshjpNgoqCNGiP8hllNo2MTm7raCiIwiYtHv8ljo3ldDoHgAVE 1+ce3yMDZBwa3Z7bOtipVlTttdDKXb71DibrGwETI5j7k7+eyFMixtpQRaEcPJpu35Ch oyOzHCSJLtMlkvqCGkyRhbg8H1/m+YnF0A1E02LWxJfD+2hEprD1IEgbHLt0tAknIa+e UMjDYAAAw6UN+EY8M9bo4x6dpxNETyZoOU+C+YSlYinJwUEX3u909yfxTOXkRZlGVslh 37yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=sZq7oEQZlKWRDxrgiYabU1Y1op4ScKBoox55q+63sjs=; b=a4ocMRVp0W200wJBk59+bxxsXQ+Xr1Ptw6pPjrnOdfN7QvcoSN8v4NqZYV9p831S8y vtDUM4d4fZex9aebquD0XO6pG1m0DlKWKq144Z9uevFJVOUeQgwnJSCTVTR5MYX5D6SM YBbZOqK6tQrLhfKFJW+HbXqoUTWSiq7KchZ47CpUoJnXxytF0vF83enaPKabPrCeWi83 DPR2aWz67/ufIZ7UgZ9mbVP9nqMdHnyzd/RBPkAk5aMnKJhoCf3nvhCE10CoPflalEVq pkPNPVKswPIcsb46O2P3AxQ19hd0ylf3sIE3fdo0+dvnZ1v5tRVt/h0agYhBGTTrpIA9 3I/Q== X-Gm-Message-State: AOUpUlFKDO7htEESthEuRcPQ2QPEh/MIkHeOj7znQhyhOpQWvioyn7dK SiAR9mKqNvpOptH86xzMOOAy+IpQJHu3YXfmSmogYHllqJFdupvMTcK57X8DddVgGwZnDqq2yyC X9eRrE/0m7jiYBgi7NIyRWekSeAp84HPoSBYIc/r9t4hI3nXa4ZntLNSj8oXphsIERsB7oeThgF a7J9bOr8eHX1t7 X-Google-Smtp-Source: AA+uWPzqTv95my2q1JR9bJp5ERy7ojes9nT0JRzTriy/wZDwkasT/kOXjFSLf8YBIVtKfekjobL2dg== X-Received: by 2002:a0c:98a4:: with SMTP id f33-v6mr18707902qvd.81.1534250151181; Tue, 14 Aug 2018 05:35:51 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id s53-v6sm14268044qts.5.2018.08.14.05.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 05:35:50 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: [HACKERS] pgbench - allow to store select results into variables To: Andrew Gierth Cc: Fabien COELHO , Stephen Frost , PostgreSQL Developers References: <20180407031725.GX27724@tamriel.snowman.net> <20180408000001.GD27724@tamriel.snowman.net> <527f7e3e-402f-4043-b370-2e11ca84d19e@2ndQuadrant.com> <87bma55h2l.fsf@news-spur.riddles.org.uk> Message-ID: <43802e1e-f2fb-96f3-69b0-e28ba96ffbac@2ndQuadrant.com> Date: Tue, 14 Aug 2018 08:35:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <87bma55h2l.fsf@news-spur.riddles.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/14/2018 07:37 AM, Andrew Gierth wrote: >>>>>> "Andrew" == Andrew Dunstan writes: > >>> This patch contains CRLF line endings > >> > >> Alas, not according to "file" nor "hexdump" (only 0A, no 0D) on my > >> local version, AFAICS. > >> > >> What happens on the path and what is done by mail clients depending > >> on the mime type is another question (eg text/x-diff or text/plain). > > Andrew> It's not done by my MUA, and it's present in your latest posted > Andrew> patch. If anything I'd suspect your MUA: > > The patch in the original email is in text/plain with base64 transfer > encoding, which means that CRLF line endings are mandatory. It's > actually up to the receiving MUA (or the archives webserver) to undo > that. > > If the archives webserver isn't handling that then it's a bug there. > Probably a good reason not to use text/plain for patches, ISTM. I do note that my MUA (Thunderbird) uses text/x-patch and probably violates RFC2046 4.1.1 cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services