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 1nDN50-0006bw-Ks for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jan 2022 08:58:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nDN4y-0008IH-EM for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jan 2022 08:58:00 +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 1nDN4x-0008I8-82 for pgsql-hackers@lists.postgresql.org; Fri, 28 Jan 2022 08:58:00 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDN4q-00017z-JV for pgsql-hackers@postgresql.org; Fri, 28 Jan 2022 08:57:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2A7A55C0197; Fri, 28 Jan 2022 03:57:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 28 Jan 2022 03:57:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=o/9p6TXDfV9vTANVWR323wc95MlTN5qCx9c79gKkr cQ=; b=apyokfFlK+t8XzrukvNtajPw2rzbAaYkD4RvpKP+miPllC/zXcS2qXPAN aHK8ewyKy+UJ7kGPv5UFVm2sTvcKoydFYqUg5uWTWpkaXfubpcLkCIcaWHfXBJT0 wps8PA2QUgs9NZZEGroKUtWbcnLx3u8X5HrlGwLkjcQZi2ar7YEH3OtHIKeMkA3h G8aJOaD5lFwcyFiaNI4NAY/0Hz2CVdWm8jf57pfWFtPIn/ifTRskAwV6MTmEddC2 FTD2Oqn/lvcnzs+R4PourWGTnWpYONfGbsbgAewXiVGn/MKACZ5ZZk5nf1jESmRa oM+wbQbniukTOA1TdsHdF+AagsjKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeeggdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnheplefgteefiedtleelgeeg jeevhfeuteefvddtjeehveeuieefgedvhfeuleduteeunecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Jan 2022 03:57:48 -0500 (EST) Message-ID: <4816b2df-646f-dc19-e5cc-4bfbd04c0e43@enterprisedb.com> Date: Fri, 28 Jan 2022 09:57:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Add header support to text format and matching feature Content-Language: en-US To: =?UTF-8?Q?R=c3=a9mi_Lapeyre?= , Zhihong Yu Cc: David Steele , Michael Paquier , vignesh C , PostgreSQL-development , Daniel Verite References: <018819f7-6cbe-4f20-903f-de1b9e434119@manitou-mail.org> <9B3E4BEB-F6E2-4D4D-AFB8-58FB3957EB35@lenstra.fr> <29be62a4-e931-b745-3e24-7aa111963447@pgmasters.net> <8A231E8D-4491-4DC2-AF72-EBEAEF0F0967@lenstra.fr> <683DD77E-38B3-4BC2-810E-4122C7A5A053@lenstra.fr> <8964EEB0-7AE1-4549-BA4C-119EF8CD266C@lenstra.fr> <94FDDB44-A608-4C75-A733-9F8FC5180D6B@lenstra.fr> From: Peter Eisentraut In-Reply-To: <94FDDB44-A608-4C75-A733-9F8FC5180D6B@lenstra.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 31.12.21 18:36, Rémi Lapeyre wrote: > Here’s an updated version of the patch that takes into account the changes in d1029bb5a2. The actual code is the same as v10 which was already marked as ready for committer. I have committed the 0001 patch. I will work on the 0002 patch next. I notice in the 0002 patch that there is no test case for the error "wrong header for column \"%s\": got \"%s\"", which I think is really the core functionality of this patch. So please add that. I wonder whether the header matching should be a separate option from the HEADER option. The option parsing in this patch is quite complicated and could be simpler if there were two separate options. It appears this has been mentioned in the thread but not fully discussed.