pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas Paris <niparisco@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-general@postgresql.org
Subject: Re: New Copy Formats - avro/orc/parquet
Date: Sun, 11 Feb 2018 23:02:36 +0100
Message-ID: <20180211220236.nwskn6nnrpe3zvyf@gmail.com> (raw)
In-Reply-To: <69a4a33f-c63d-a614-8687-c746ae015fb3@aklaver.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>
	<EF8C176E-03EA-4AD6-83FF-BCF5DBC76B20@anarazel.de>
	<20180211204126.i3sbze3dor2llxty@gmail.com>
	<20180211205345.47yvrxxodbfeyxk6@alap3.anarazel.de>
	<20180211205735.nt6auxazit42qmcs@gmail.com>
	<69a4a33f-c63d-a614-8687-c746ae015fb3@aklaver.com>

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.




view thread (20+ messages)  latest in thread

Message-ID: <20180211220236.nwskn6nnrpe3zvyf@gmail.com>
Permalink:  ../20180211220236.nwskn6nnrpe3zvyf@gmail.com/
Also on:    postgresql.org/message-id/20180211220236.nwskn6nnrpe3zvyf@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: niparisco@gmail.com, adrian.klaver@aklaver.com, andres@anarazel.de, tomas.vondra@2ndquadrant.com
  Subject: Re: New Copy Formats - avro/orc/parquet
  In-Reply-To: <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> <EF8C176E-03EA-4AD6-83FF-BCF5DBC76B20@anarazel.de> <20180211204126.i3sbze3dor2llxty@gmail.com> <20180211205345.47yvrxxodbfeyxk6@alap3.anarazel.de> <20180211205735.nt6auxazit42qmcs@gmail.com> <69a4a33f-c63d-a614-8687-c746ae015fb3@aklaver.com> <20180211220236.nwskn6nnrpe3zvyf@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox