Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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:
> > insert ...
> > insert ...
> > insert ...
> 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...


In response to

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group