From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: psql \copy
Date: Fri, 24 Apr 2020 11:36:47 -0500
Message-ID: <21c97985-7126-f71a-ff4a-da6e10e9ab76@gmail.com> (raw)
In-Reply-To: <b1ad085a-6fb0-979d-3d7a-01ce52e61e53@netwolves.com>
References: <b1ad085a-6fb0-979d-3d7a-01ce52e61e53@netwolves.com>
You might want to investigate pg_bulkload for this activity.
On 4/24/20 10:55 AM, Steve Clark wrote:
> Hello,
>
> I am using psql to copy data extracted from an InfluxDB in csv format into
> postgresql.
> I have a key field on the time field which I have defined as a bigint
> since the time I get
> from InfluxDB is an epoch time.
>
> My question is does psql abort the copy if it hits a duplicate key, or
> does it keep processing?
>
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: psql \copy
In-Reply-To: <21c97985-7126-f71a-ff4a-da6e10e9ab76@gmail.com>
References: <b1ad085a-6fb0-979d-3d7a-01ce52e61e53@netwolves.com> <21c97985-7126-f71a-ff4a-da6e10e9ab76@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