pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: zmokdad@vanrise.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14430: NPGSQL error
Date: Thu, 24 Nov 2016 07:58:20 +0000
Message-ID: <20161124075820.6530.49414@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14430
Logged by:          zeinab mokdad
Email address:      zmokdad@vanrise.com
PostgreSQL version: 9.6.1
Operating system:   Windows
Description:        

trying to bulk insert in STDIN an error is raise : COPY file signature not
recognized
note that this was working fine in Npgsql2.0 when upgrading and using
BeginRawBinaryCopy this error is raised.
this is my code : 
  string r = @"961\t8\t * ****\t3\t0\t0\t1\t11 / 23 / 2016 2:33:35
PM\t8\t1\t1\t100\t100\t0\t100\t0\t0\t0\t0\t0";
data = GetBytes(r);
            using (var outStream = conn.BeginRawBinaryCopy("COPY BINARY
rt197_temp  FROM STDIN"))
            {
                outStream.Write(data, 0, len);
            }

is there any special way to determine fields seperator or EOF.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20161124075820.6530.49414@wrigleys.postgresql.org>
Permalink:  ../20161124075820.6530.49414@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161124075820.6530.49414@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: zmokdad@vanrise.com
  Subject: Re: BUG #14430: NPGSQL error
  In-Reply-To: <20161124075820.6530.49414@wrigleys.postgresql.org>
  References: <20161124075820.6530.49414@wrigleys.postgresql.org>

* 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