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 1el11p-0006lE-Ps for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 23:27:25 +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 1el11o-0007gn-G5 for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 23:27:24 +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.84_2) (envelope-from ) id 1el11o-0007gd-8Y for pgsql-general@lists.postgresql.org; Sun, 11 Feb 2018 23:27:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1el11h-0005ro-A3 for pgsql-general@postgresql.org; Sun, 11 Feb 2018 23:27:23 +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 w1BNRCRl025422; Sun, 11 Feb 2018 18:27:12 -0500 From: Tom Lane To: Andres Freund cc: Nicolas Paris , pgsql-general@postgresql.org Subject: Re: New Copy Formats - avro/orc/parquet In-reply-to: <5F1153A6-7AB7-453D-89BC-FD82EEEEBC8E@anarazel.de> References: <20180210151304.fonjztsynewldfba@gmail.com> <20180211211235.5x3jywe5z3lkgcsr@alap3.anarazel.de> <18464.1518389293@sss.pgh.pa.us> <5F1153A6-7AB7-453D-89BC-FD82EEEEBC8E@anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 11 Feb 2018 14:53:30 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25420.1518391632.1@sss.pgh.pa.us> Date: Sun, 11 Feb 2018 18:27:12 -0500 Message-ID: <25421.1518391632@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On February 11, 2018 2:48:13 PM PST, Tom Lane wrote: >> (Any such patch should manage >> to turn COPY-CSV into an extension, at least so far as copy.c is >> concerned, even if we don't package it as one.) > Yea, I was thinking we should move all three (default, csv, binary) > supported formats to using such a facility. Hm, yeah, probably. That opens up a different dimension of variation: is the raw data text or binary? I'm thinking we shouldn't make the format handlers reinvent e.g. encoding conversion if they don't have to, so it's likely that some of the infrastructure for text data would remain in core copy.c. regards, tom lane