Re: [GENERAL] So slow inserts... Why?

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Remigiusz Sokolowski <rems(at)gdansk(dot)sprint(dot)pl>
Cc: Charles Tassell <ctassell(at)isn(dot)net>, Michal Samek <webmaster(at)tony(dot)cz>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] So slow inserts... Why?
Date: 1999-05-27 06:58:44
Message-ID: 374CED24.69E7DA9A@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Remigiusz Sokolowski wrote:
>
> > Try using transactions. I found when doing single inserts they could take
> > hours, but when grouping all the inserts into a single transaction, it was
> > relatively quick. It's been a while, but I believe the syntax is:
> > BEGIN
> > insert ...
> > insert ...
> > insert ...
> > COMMIT;
>
> Btw. I want to ask about how much "inserts" can I insert between BEGIN and

2^32 - 2 -:)

> END; When I do it last time ( I want to add about 1000 "inserts") - I get
> error - that buffer can contain to 20 000 characters.
> I use psql, so I'm not sure if this is a limit of psql itself or limit of
> backend.
> And may be anybody knows if it is possible change this limit and where?

You have to add ; after each insert...

Vadim

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sebestyen Zoltan 1999-05-27 09:12:38 6.4.2 on DEC Alpha
Previous Message Michal Samek 1999-05-27 06:45:43 Re: [GENERAL] So slow inserts... Why?