Re: [GENERAL] Does PG support bulk operation in embedded C

From: Steve Midgley <steve(dot)midgley(at)learningtapestry(dot)com>
To: Ravi Krishna <srkrishna(at)gmx(dot)com>
Cc: john <johnf(at)jfcomputer(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: [GENERAL] Does PG support bulk operation in embedded C
Date: 2015-05-20 15:43:50
Message-ID: CAJexoS+3dXTEmo1TVHDV7j57qQaWeURyw4MaLP7S0tWS+whkOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

I've set up in memory transfers using copy - you do that with the stdout
option. Performance is very good if you're on the same machine as the sql
server. Obviously network is the bottleneck otherwise.
On May 20, 2015 8:24 AM, "Ravi Krishna" <srkrishna(at)gmx(dot)com> wrote:

>
> > Anyway, taking the function name 'bulk' into account - I think you want
> > find the best way to to insert a large number of row/records.
> >
> > Review the 'copy' command to populate a database:
> > http://www.postgresql.org/docs/9.1/static/populate.html - read
> > carefully as it will increase performance in a dramatic way.
>
> I am aware of the copy command, but we are talking about application
> inserting rows from a C++ task
> with values coming in variables. Does COPY handle that? COPY looks more
> closer to sqlloader of Oracle.
>
> DB2 Bulkcopy API is damn good. We have applications inserting tens of rows
> in one single call.
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message William Dunn 2015-05-20 15:59:09 Can we simulate Oracle Flashback with pg_export_snapshot()?
Previous Message Ravi Krishna 2015-05-20 15:23:51 Re: [GENERAL] Does PG support bulk operation in embedded C

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Midgley 2015-05-20 18:11:45 Fwd: [GENERAL] Does PG support bulk operation in embedded C
Previous Message Ravi Krishna 2015-05-20 15:23:51 Re: [GENERAL] Does PG support bulk operation in embedded C