From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Nicolas Paris <niparisco@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: New Copy Formats - avro/orc/parquet
Date: Sat, 10 Feb 2018 18:19:23 +0100
Message-ID: <fd8c103f-8448-775f-39d5-d69c8aaf0560@2ndquadrant.com> (raw)
In-Reply-To: <CAKFQuwbeLaUD9iXmUExNrOTmdZVqTFnaHc+LQGh0ge5xcnaLeQ@mail.gmail.com>
References: <20180210151304.fonjztsynewldfba@gmail.com>
<CAKFQuwbeLaUD9iXmUExNrOTmdZVqTFnaHc+LQGh0ge5xcnaLeQ@mail.gmail.com>
On 02/10/2018 04:38 PM, David G. Johnston wrote:
> On Saturday, February 10, 2018, Nicolas Paris <niparisco@gmail.com
> <mailto:niparisco@gmail.com>> wrote:
>
> Hello
>
> I d'found useful to be able to import/export from postgres to those
> modern data
> formats:
> - avro (c writer=https://avro.apache.org/docs/1.8.2/api/c/index.html
> <https://avro.apache.org/docs/1.8.2/api/c/index.html;)
> - parquet (c++ writer=https://github.com/apache/parquet-cpp
> <https://github.com/apache/parquet-cpp;)
> - orc (all writers=https://github.com/apache/orc
> <https://github.com/apache/orc;)
>
> Something like :
> COPY table TO STDOUT ORC;
>
> Would be lovely.
>
> This would greatly enhance how postgres integrates in big-data
> ecosystem.
>
>
> It would be written "... with (format 'orc')" and your best bet would be
> to create an extension. I don't think that having such code in core (or
> contrib) is desirable.
>
I don't think make this extensible by an extension (i.e. the formats
supported by COPY are hard-coded in core). But I agree that if we are to
add multiple new formats, it'd be nice to allow doing that in extension.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: tomas.vondra@2ndquadrant.com, david.g.johnston@gmail.com, niparisco@gmail.com
Subject: Re: New Copy Formats - avro/orc/parquet
In-Reply-To: <fd8c103f-8448-775f-39d5-d69c8aaf0560@2ndquadrant.com>
References: <20180210151304.fonjztsynewldfba@gmail.com> <CAKFQuwbeLaUD9iXmUExNrOTmdZVqTFnaHc+LQGh0ge5xcnaLeQ@mail.gmail.com> <fd8c103f-8448-775f-39d5-d69c8aaf0560@2ndquadrant.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