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 1ekzht-0000qP-Uz for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 22:02:46 +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 1ekzhr-0004uX-J3 for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 22:02:43 +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 1ekzhr-0004uN-7U for pgsql-general@lists.postgresql.org; Sun, 11 Feb 2018 22:02:43 +0000 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ekzho-00046x-Pr for pgsql-general@postgresql.org; Sun, 11 Feb 2018 22:02:42 +0000 Received: by mail-wr0-x235.google.com with SMTP id g4so3512579wrb.6 for ; Sun, 11 Feb 2018 14:02:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to:priority :user-agent; bh=8DfegC1Cuy4nMDBkf7n7SiAwZQADS/vDC16snFbhoP0=; b=Ki43dIqZnTJ2VXCSW9HfMwfRxA1d2qn1UBblji9+xvVA90olrafIK2j8i+/qg+yD6S oLo8yUIeGkoM4CmCuaUaSjYhl7fVGacXu9kL9f0a1XagO8bLML5CP7Gzu0A77e2FXbjx LV93a4jfg8BOUe5P0jEcbQN7JF5+s/2J0PHAwaUI8v14rQLsuDzKqPAeN3rSDaQ7WiwR 3zz5LEV92dwYOiGQYSVhejlxmGS50djn7mCDab9lDu8wKQBHcc1iqrGTyVfPo4FnTvGY 73KZYcNeYnxtfFRwN0eCaQ6t3bJrhC2qzT6QS7P2F/sul+vjt7WehBeGsjmRzHhHD8oZ du9A== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:priority:user-agent; bh=8DfegC1Cuy4nMDBkf7n7SiAwZQADS/vDC16snFbhoP0=; b=dJl9U/BW4OFmJOY5ANPqDkKyS0L30NVL+U+/lbNwTlXL3q+pElRJ0TbVRqU66f6igU E4Extpau6SydznPAPLBM2EtRS7TyVKo4scTkab4QcuPHNWZGExuD7hDvPReS09O8+/pU zIY3Dn1aa09619PT1z7xM+lppBSpiyyeOhNjbWbIOQjeDy3C3JOXwnRioSrWKAANmB+L NKJi75N+TLFgqgREacyundmqPE19+DT9lVUNhn4bE2Ab1ayNPiwYQ0SJ0b3ik8RL9aF/ klWACB0OkLHSUyEwROnYOkp1FzgdtcCweAFlkUmFNbCs/aHpzkWQqcwNsjTke7360hUR gB0g== X-Gm-Message-State: APf1xPBG6LAAmDHACGg17pWPebs2cfiyQJGbiDu3DbS0VYQ79bOPxmsd erMTCdeGtxHo/g2WPYIYhBs= X-Google-Smtp-Source: AH8x227UGTRLU0EG8p84GLry2aivJi0G6sQo5J8RprJTCQ82vb0J6a1Uoe0Xw68pMnL5GyK76cJlBw== X-Received: by 10.223.146.33 with SMTP id 30mr7734764wrj.14.1518386557909; Sun, 11 Feb 2018 14:02:37 -0800 (PST) Received: from localhost (81-66-114-185.rev.numericable.fr. [81.66.114.185]) by smtp.gmail.com with ESMTPSA id 63sm3812001wmd.17.2018.02.11.14.02.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Feb 2018 14:02:36 -0800 (PST) Date: Sun, 11 Feb 2018 23:02:36 +0100 From: Nicolas Paris To: Adrian Klaver Cc: Andres Freund , Tomas Vondra , pgsql-general@postgresql.org Subject: Re: New Copy Formats - avro/orc/parquet Message-ID: <20180211220236.nwskn6nnrpe3zvyf@gmail.com> References: <78a8f0bd-4b6f-b791-b6ce-80b19e2b6d1b@aklaver.com> <20180210153011.o2w3tdriqmwvahph@gmail.com> <3274b427-fe3a-89fc-2302-52082bf817aa@2ndquadrant.com> <20180211171653.nvb26tbu774tqgiy@alap3.anarazel.de> <20180211200012.2agrfocyaf42td5v@gmail.com> <20180211204126.i3sbze3dor2llxty@gmail.com> <20180211205345.47yvrxxodbfeyxk6@alap3.anarazel.de> <20180211205735.nt6auxazit42qmcs@gmail.com> <69a4a33f-c63d-a614-8687-c746ae015fb3@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <69a4a33f-c63d-a614-8687-c746ae015fb3@aklaver.com> Priority: normal User-Agent: NeoMutt/20170714-155-820ab5 (1.8.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le 11 févr. 2018 à 22:19, Adrian Klaver écrivait : > On 02/11/2018 12:57 PM, Nicolas Paris wrote: > > Le 11 févr. 2018 à 21:53, Andres Freund écrivait : > > > On 2018-02-11 21:41:26 +0100, Nicolas Paris wrote: > > > > I have also the storage and network transfers overhead in mind: > > > > All those new formats are compressed; this is not true for current > > > > postgres BINARY format and obviously text based format. By experience, > > > > the binary format is 10 to 30% larger than the text one. On the > > > > contrary, an ORC file can be up to 10 times smaller than a text base > > > > format. > > > > > > That seems largely irrelevant when arguing about using PROGRAM though, > > > right? > > > > > > > Indeed those storage and network transfers are only considered versus > > CSV/BINARY format. No link with PROGRAM aspect. > > > > Just wondering what your time frame is on this? Asking because this would be > considered a new feature and so would need to be added to a major release of > Postgres. Currently work is going on for Postgres version 11 to be > released(just a guess) late Fall 2018/early Winter 2019. The > CommitFest(https://commitfest.postgresql.org/) for this release is currently > approximately 3/4 of the way through. Not sure that new code could make it > in at this point. This means it would be bumped to version 12 for 2019/2020. > Right now, exporting (bilions rows * hundred columns) from postgres to distributed tools such spark is feasible while beeing based on parsing, transfers, tooling and workaround overhead. Waiting until 2020 to get the oportunity to write COPY extensions would mean using this feature around 2022. I mean, writing the ORC COPY extension, extending the postgres JDBC driver, extending the spark jdbc connector, all from different communities: this will be a long process. But again, posgres would be the most advanced RDBMS because AFAIK not any DB deal with those distributed format for the moment. Having in mind that such feature will be released one day, make think the place of postgres in a datawarehouse architecture accordingly.