Re: How to insert bulk data with libpq in C?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: a <372660931(at)qq(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to insert bulk data with libpq in C?
Date: 2018-12-18 08:24:04
Message-ID: 80ed60d54a29cb8bf3058dc0b9f5d44cf244378c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Mair 2018-12-18 09:14:51 Re: How to insert bulk data with libpq in C?
Previous Message Alban Hertroys 2018-12-18 08:02:21 Re: IF NOT EXIST