Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elEnU-0000AW-Ff for pgsql-general@arkaria.postgresql.org; Mon, 12 Feb 2018 14:09:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elEnT-0004D2-CQ for pgsql-general@arkaria.postgresql.org; Mon, 12 Feb 2018 14:09:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elEnS-0004Cq-Tk for pgsql-general@lists.postgresql.org; Mon, 12 Feb 2018 14:09:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elEnM-00078P-1H for pgsql-general@postgresql.org; Mon, 12 Feb 2018 14:09:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1CE9IFX030862; Mon, 12 Feb 2018 09:09:18 -0500 From: Tom Lane To: Magnus Hagander cc: Andres Freund , Nicolas Paris , pgsql-general General Subject: Re: New Copy Formats - avro/orc/parquet In-reply-to: References: <20180210151304.fonjztsynewldfba@gmail.com> <20180211211235.5x3jywe5z3lkgcsr@alap3.anarazel.de> <18464.1518389293@sss.pgh.pa.us> Comments: In-reply-to Magnus Hagander message dated "Mon, 12 Feb 2018 14:55:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30860.1518444558.1@sss.pgh.pa.us> Date: Mon, 12 Feb 2018 09:09:18 -0500 Message-ID: <30861.1518444558@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Magnus Hagander writes: > +1. And bonus points if an API can also be defined so such an extension > parsing also becomes useful to file_fdw automatically (or at least > optionally). Hm, well, file_fdw already goes through COPY FROM, so it seems like it'd almost just work. "Almost" because there'd need to be a way for it to support the appropriate options. So this means that whatever the mechanism is for extension-specific options, it has to be introspectable enough for file_fdw.c to understand what to expose as FDW options. regards, tom lane