Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YqiaI-00043o-FM for pgsql-admin@arkaria.postgresql.org; Fri, 08 May 2015 13:44:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YqiaG-0001kD-Fh for pgsql-admin@arkaria.postgresql.org; Fri, 08 May 2015 13:44:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yqa6v-0007qd-1g for pgsql-admin@postgresql.org; Fri, 08 May 2015 04:42:05 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Yqa6h-0004S3-LZ for pgsql-admin@postgresql.org; Fri, 08 May 2015 04:41:59 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 0EBA11D941E1 for ; Thu, 7 May 2015 21:42:34 -0700 (PDT) Date: Thu, 7 May 2015 21:41:46 -0700 (MST) From: phuongnh2 To: pgsql-admin@postgresql.org Message-ID: <1431060106393-5848403.post@n5.nabble.com> In-Reply-To: <1430981797169-5848264.post@n5.nabble.com> References: <1430980355141-5848263.post@n5.nabble.com> <1430981797169-5848264.post@n5.nabble.com> Subject: Re: Issue import (COPY) data by between miss lines MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi Admin, How to config postgres to result below ?? CREATE TEMP TABLE foo (a bigint, b text); -- input_file.txt -- 1 one 2 3 three 111 four 4 5 five error logging off COPY foo FROM 'input_file.txt'; ERROR: missing data for column "b" CONTEXT: COPY foo, line 2: "2" skip bad rows --skip bad rows COPY foo FROM 'input_file.txt' (ERROR_LOGGING, ERROR_LOGGING_SKIP_BAD_ROWS); SELECT * FROM foo; a | b ---+------ 1 | one 5 | five (2 rows) -- View this message in context: http://postgresql.nabble.com/Issue-import-COPY-data-by-between-miss-lines-tp5848263p5848403.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin