Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyFV4-0007jH-4y for pgsql-general@arkaria.postgresql.org; Tue, 20 Mar 2018 11:32:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyFV2-0006V1-Oj for pgsql-general@arkaria.postgresql.org; Tue, 20 Mar 2018 11:32:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyFV2-0006Us-AY for pgsql-general@lists.postgresql.org; Tue, 20 Mar 2018 11:32:16 +0000 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyFUv-0004Bj-7N for pgsql-general@lists.postgresql.org; Tue, 20 Mar 2018 11:32:15 +0000 Received: by mail-wr0-x22e.google.com with SMTP id 80so224172wrb.2 for ; Tue, 20 Mar 2018 04:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :priority:user-agent; bh=cxPu1a4nJrIEjm1YLVBSQObkrF26fnLgsLQ459Q/ZBQ=; b=kgip+B8wZQvyNpsS66qEGAVQxIv8Y1JJ7aDLohDIIzixPoN9qLwR82rgwnQtGXD3nf wBmk9W8bLIgamquEah/FYJUdHXDC9Tqhlv+JQ5EZaJlHDM88QnSWzFyWecIjCypnxlO7 ko/3wFRYl8TZztWmRiz61lpYMqBjl08ajw/qixVVFaU23J/opfOG5cnBBIQWJTdtTl39 Bwu6XFqgKMPqOtnjOES2vnUGkLLMiwrPtRYyj6pKzwohHzsarZg2ZMU5X2mtBn6kFjjk BWxbxEaTo4ARRWaSCMXvnWqM2iq6T2cl3rbT2V+RsW7hqVSxmFjKIVsrMCUUtBYrLvw1 XVFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:priority:user-agent; bh=cxPu1a4nJrIEjm1YLVBSQObkrF26fnLgsLQ459Q/ZBQ=; b=U1SSrKYdhvVeQmqNelTLJY21ehDrCHKhAPknRbisUlwDK/AWBaIVrD1vnUZ7j9NmIE vYRnNP1PW8k2wwpLjIUsSeCo1KsKsgLh1xBTE7iLVq7VibNiZQNmX2WkI9Tdeobk5M6f 1Afi8jXbElQL8KIomYe70GBzwP/mOgYTqkmA6s10XRDuT5FNml02szkrSpOxoh20rUdr tfb8DSftA1ctavmNuW4ASroyewrolroWFmUphEhLvXimSRij9D35E+VfkfkFvEHLMWTV j6LBC52XEOahbd2h6h9rdFkwucgTfUivFZEautQmvHUNui79JlcNA8dgdOW15gjLK7tH 2Dww== X-Gm-Message-State: AElRT7GUNIscUyqAqwzAQluM573v1VS5/80jV0k4I41pcLvNhkPfJU1X s2z5XGepJP4okOZ29ChlCVjq+Q== X-Google-Smtp-Source: AG47ELstJemEzCBSzeixzX/VMATWEj4nbVZjsyFA0sCE44yVkI+nbWz9uI+ZZKdQSSsXFA7wAs4SXw== X-Received: by 10.223.162.203 with SMTP id t11mr13382561wra.88.1521545526042; Tue, 20 Mar 2018 04:32:06 -0700 (PDT) Received: from localhost (81-66-114-185.rev.numericable.fr. [81.66.114.185]) by smtp.gmail.com with ESMTPSA id x127sm1131692wmx.19.2018.03.20.04.32.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 04:32:05 -0700 (PDT) Date: Tue, 20 Mar 2018 12:32:04 +0100 From: Nicolas Paris To: pgsql-general@lists.postgresql.org Subject: COPY error when \. char Message-ID: <20180320113204.n3rto7iyekqkzmz4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Priority: normal User-Agent: NeoMutt/20170714-155-820ab5 (1.8.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello I get an error when loading this kind of csv: > test.csv: "hello ""world"" " "\." "this works " "this \. does not" > table: create table test (field text); > sql: \copy test (field) from 'test.csv' CSV quote '"' ESCAPE '"'; ERROR: unterminated CSV quoted field CONTEXTE : COPY test, line 7: ""this " Apparently, having the \. string in a single line make it break. Is this normal ? Thanks