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 1hYBZV-0005iM-3R for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 15:41:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYBZT-0006ip-W7 for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 15:41:55 +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 1hYBZT-0006ii-Kd for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 15:41:55 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYBZQ-0004lh-Rl for pgsql-general@postgresql.org; Tue, 04 Jun 2019 15:41:54 +0000 Received: from [192.168.127.1] (port=21510 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1hYBZM-0005JP-Hc; Tue, 04 Jun 2019 15:41:48 +0000 Received: from [127.0.0.1] (port=41087 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1hYBZL-00021T-O9; Tue, 04 Jun 2019 15:41:47 +0000 From: Andrew Gierth To: Matthias Apitz Cc: Postgres general Subject: Re: Two small questions re/ COPY CSV data into table In-Reply-To: <20190604150318.GA13915@sh4-5.1blu.de> (Matthias Apitz's message of "Tue, 4 Jun 2019 17:03:18 +0200") Message-ID: <87sgsp8ikd.fsf@news-spur.riddles.org.uk> References: <20190604100247.GA2800@c720-r342378> <877ea1aby6.fsf@news-spur.riddles.org.uk> <20190604150318.GA13915@sh4-5.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 04 Jun 2019 16:41:47 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Matthias" == Matthias Apitz writes: >> That sounds like the file is not actually a CSV - why do you think >> it is? Matthias> Well, it's not strictly CSV, In other words it's not a CSV at all. Matthias> I do load this now with COPY in mode TEXT and modify the data Matthias> before with: Matthias> sed 's/|/\v/g' < table-from-Sybase | sed 's/\\\v/|/g' > table-for-copy What on earth is this supposed to achieve? -- Andrew (irc:RhodiumToad)