pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Ravi Krishna <srkrishna@yahoo.com>
Cc: Alban Hertroys <haramrae@gmail.com>
Cc: PG mailing List <pgsql-general@lists.postgresql.org>
Subject: Re: Load data from a csv file without using COPY
Date: Wed, 20 Jun 2018 12:17:09 +0900
Message-ID: <20180620031709.GF20245@paquier.xyz> (raw)
In-Reply-To: <CAKFQuwaUfLBHZp15dCQTddi37cwdGs2pV7VjfMQ-ae_NOdLiEQ@mail.gmail.com>
References: <AE89FBE5-B726-4108-925F-449E34D24651@yahoo.com>
	<D6B45102-778D-4B35-9FB8-B007CE2A7A06@gmail.com>
	<B1C1D70B-F13D-4AF9-A41E-9B83F09D6328@yahoo.com>
	<CAKFQuwaUfLBHZp15dCQTddi37cwdGs2pV7VjfMQ-ae_NOdLiEQ@mail.gmail.com>

On Tue, Jun 19, 2018 at 02:32:10PM -0700, David G. Johnston wrote:
> ​You really need to describe what you consider to be a "real life​
> scenario"; and probably give a better idea of creation and number of these
> csv files.  In addition to describing the relevant behavior of the
> application you are testing.
> 
> If you want maximum realism you should probably write integration tests for
> your application and then execute those at high volume.
> 
> Or at minimum give an example of the output you would want from this
> unknown program...

Hard to say what you are especially looking for that psql's \copy cannot
do, but perhaps you have an interest in pg_bulkload?  Here is a link to
the project:
https://github.com/ossc-db/pg_bulkload/

It has a couple of fancy features as well, like preventing failures of
rows if loading a large file, etc.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (29+ messages)  latest in thread

Message-ID: <20180620031709.GF20245@paquier.xyz>
Permalink:  ../20180620031709.GF20245@paquier.xyz/
Also on:    postgresql.org/message-id/20180620031709.GF20245@paquier.xyz

 · 

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: michael@paquier.xyz, david.g.johnston@gmail.com, srkrishna@yahoo.com, haramrae@gmail.com
  Subject: Re: Load data from a csv file without using COPY
  In-Reply-To: <20180620031709.GF20245@paquier.xyz>
  References: <AE89FBE5-B726-4108-925F-449E34D24651@yahoo.com> <D6B45102-778D-4B35-9FB8-B007CE2A7A06@gmail.com> <B1C1D70B-F13D-4AF9-A41E-9B83F09D6328@yahoo.com> <CAKFQuwaUfLBHZp15dCQTddi37cwdGs2pV7VjfMQ-ae_NOdLiEQ@mail.gmail.com> <20180620031709.GF20245@paquier.xyz>

* 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