Re: transaction limits?

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: transaction limits?
Date: 2005-10-21 20:49:01
Message-ID: 60sluud29u.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

MaXX <bs139412(at)skynet(dot)be> writes:
> jeff sacksteder wrote:
>
>> Are there known limits to how many rows can be inserted by one
>> transaction, or does that just reflect the already documented row, table
>> and database limits?
> An error string in the source code stands:
> "cannot have more than 2^32-1 commands in a transaction"
> (#: access/transam/xact.c:510)

That means you couldn't do more than 2^32-1 INSERT statements.

But that wouldn't (in principle) prevent having each of the 2^32-1 commands
use COPY to insert 2^31 rows, which would presumably mean that the
limit on the number of rows insertable could be 2^63-1.
--
let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];;
http://www.ntlug.org/~cbbrowne/x.html
"I am aware of the benefits of a micro kernel approach. However, the
fact remains that Linux is here, and GNU isn't --- and people have
been working on Hurd for a lot longer than Linus has been working on
Linux." -- Ted T'so, 1992.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-10-21 21:53:57 Re: transaction limits?
Previous Message Tom Lane 2005-10-21 20:29:06 Re: Handling of pad characters (was RE: Oracle buys Innobase )