From: zmokdad@vanrise.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14433: Bulk insert
Date: Fri, 25 Nov 2016 07:15:28 +0000
Message-ID: <20161125071528.6534.58612@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: 14433
Logged by: zeinab mokdad
Email address: zmokdad@vanrise.com
PostgreSQL version: 9.6.1
Operating system: Windows
Description:
using Npgsql 3.1,
I am unable to do a bulk insert of a text file in postgres server.
I am using below to insert object by object.
using (NpgsqlConnection conn = new
NpgsqlConnection(GetConnectionString()))
{
if (conn.State == ConnectionState.Closed) conn.Open();
using (var inStream =
conn.BeginTextImport(string.Format("COPY {0} FROM STDIN", tableName)))
{ inStream.Write(route);
}
}
is there anyway where I can insert the list of object at one hit?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 #14433: Bulk insert
In-Reply-To: <20161125071528.6534.58612@wrigleys.postgresql.org>
References: <20161125071528.6534.58612@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