From: Laurenz Albe <laurenz.albe@cybertec.at>
To: a <372660931@qq.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to insert bulk data with libpq in C?
Date: Tue, 18 Dec 2018 09:24:04 +0100
Message-ID: <80ed60d54a29cb8bf3058dc0b9f5d44cf244378c.camel@cybertec.at> (raw)
In-Reply-To: <tencent_CE6C7379E293054D70DED60603941818B408@qq.com>
References: <tencent_CE6C7379E293054D70DED60603941818B408@qq.com>
a wrote:
> May I ask the proper (fast) way of inserting bulk data and if possible, an example would be very appreciated.
>
> Please note that the data I would like to insert contains arrays (float8[]).
>
> By the way, my environment is Windows 10, PostgreSQL 11 and compiling with Visual Studio 2017.
That would be COPY:
https://www.postgresql.org/docs/current/sql-copy.html
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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-general@postgresql.org
Cc: laurenz.albe@cybertec.at, 372660931@qq.com
Subject: Re: How to insert bulk data with libpq in C?
In-Reply-To: <80ed60d54a29cb8bf3058dc0b9f5d44cf244378c.camel@cybertec.at>
References: <tencent_CE6C7379E293054D70DED60603941818B408@qq.com> <80ed60d54a29cb8bf3058dc0b9f5d44cf244378c.camel@cybertec.at>
* 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