Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiDTw-00053L-C4 for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 07:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiDTu-0005qH-Rz for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 07:45:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiDTu-0005q9-I6 for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 07:45:38 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiDTN-0000kN-9p for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 07:45:37 +0000 Received: by mail-wr1-x433.google.com with SMTP id f9so16505962wre.12 for ; Tue, 02 Jul 2019 00:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=YcgL09B4ZxVVIsx0p8BN3/o/LPYLRHDP1l1SRYbWVLc=; b=E6eWLq9oyzRsiGBIwoiBTXBsVKoD0xWit2c2N5uYf3NRjnHTa9npvFZp1WqN4A5WWT fiLR1Up+UgjMhbI6UhdRccTgmEFa8ELWCRIjjjsjOKD9pWpWGTqmj2AlqYFAVv4s18dA InFNttTR6/yEjoH5Qp42VNmRMoidMukrJPS9xDmPjFL0SVCcztOEXFr/QwTozXhbbkMu YFspQZnFlaIibXro/WSsRawNARMN57rM0Zrb+E8TxQOdVWH5qx39VsRby6f8quKQKpuL vfO3kls8rjbqBvkRqIY6r50Zw1krHp74Mc1ibbor65MBH9B1TQUIS8G5VwOAp6JPUHNv N7ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=YcgL09B4ZxVVIsx0p8BN3/o/LPYLRHDP1l1SRYbWVLc=; b=m6eNpS/iFZEgfWr+R6a8OA2j/JLAZJEcdJr+8QSOtvT6ngF5UaWanCS7/tozERkJDO zdAJGELG0wbtfizT1YSCXh22hwJKcmVhzseQbckL8SkbXnXsMJdQbNPbTKaxe6F7neD/ d4VwtnQoh9+2RHhCxUEvTJAz9RQlCgtqHgNCB3ukcG10UhNLhlbcYyiq/Mm9mcuPmaOl YoXnLvF8abQeL/VNs5BfsR/XiaiUgOipeJi8k2bkb/N9fnS4JyuQrv6aci08LQJi1KDD +lQxm6m8I/H+yP8+7VcAxOEqIN9wwQnNBIiEnDY3pqM8/WoR8gnnogPav5L89zyaKj1d JxiQ== X-Gm-Message-State: APjAAAXEM/DLNB3O8TQY82DrpOAvzZgSKLWnT+o3ntwnLuPN5q1Kfv4Y 8pb6LwhkwVP3q9kNYczXtd2eTKe7y84= X-Google-Smtp-Source: APXvYqz1UW69TeMo+ze8x5b6BzZ88WpfoaNzbmpZQEhMf58NR0wlpM6ciEdSrjQPf+qdAfbdjx7QpA== X-Received: by 2002:a05:6000:4b:: with SMTP id k11mr21695012wrx.82.1562053504355; Tue, 02 Jul 2019 00:45:04 -0700 (PDT) Received: from localhost.localdomain (217-149-169-10.nat.highway.telekom.at. [217.149.169.10]) by smtp.gmail.com with ESMTPSA id z25sm2859737wmf.38.2019.07.02.00.45.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 00:45:03 -0700 (PDT) Message-ID: <45312c734ff4177639b309940be4017d91f4a38b.camel@cybertec.at> Subject: Re: From: Laurenz Albe To: Prakash Ramakrishnan , pgsql-general@lists.postgresql.org Date: Tue, 02 Jul 2019 09:45:03 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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..."