pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Prakash Ramakrishnan <prakash.ramakrishnan.ap@nielsen.com>
To: pgsql-general@lists.postgresql.org
Subject: Re:
Date: Tue, 02 Jul 2019 09:45:03 +0200
Message-ID: <45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at> (raw)
In-Reply-To: <CAA2eZXx43admgo7gj_zHS-_AUqfB6yx1Qdhjvr47YjQH95-ChQ@mail.gmail.com>
References: <CAA2eZXx43admgo7gj_zHS-_AUqfB6yx1Qdhjvr47YjQH95-ChQ@mail.gmail.com>

On Tue, 2019-07-02 at 13:09 +0530, Prakash Ramakrishnan wrote:
> We are getting below error while during import the csv file please do the needful.

I'd say the needful thing here is for you to read the documentation...

> -bash-4.2$ more ckr_sto.csv
>  4937880 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128790679 |           |           |           |
>  4939355 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128639345 |           |           |           |
>  4939744 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128684510 |           |           |           |
>  4939750 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128683100 |           |           |           |
>  4936360 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128567527 |           |           |           |
>  4940308 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128781329 |           |           |           |
>  4938006 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 4000128912554 |           |           |           |
>  4937457 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128426574 |           |           |           |
> 
> error
> ----------
> postgres=# \copy ckr_sto from /data/ckr_sto.csv CSV HEADER;
> ERROR:  invalid input syntax for integer: " 4939355 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 5000128639345 |           |           |           | "
> CONTEXT:  COPY ckr_sto, line 2, column pod_id: " 4939355 |     12 | 2015-01-05  |            | 2015-01-05 05:51:47 |         |        | 500012863934..."



view thread (6+ messages)  latest in thread

Message-ID: <45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at>
Permalink:  ../45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at/
Also on:    postgresql.org/message-id/45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, prakash.ramakrishnan.ap@nielsen.com
  Subject: Re: 
  In-Reply-To: <45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at>
  References: <CAA2eZXx43admgo7gj_zHS-_AUqfB6yx1Qdhjvr47YjQH95-ChQ@mail.gmail.com> <45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at>

* 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