Re: Too many commands in a transaction - Mailing list pgsql-general

From Tom Lane
Subject Re: Too many commands in a transaction
Date
Msg-id 14675.1207085086@sss.pgh.pa.us
Whole thread Raw
In response to Too many commands in a transaction  (sam <sam.mahindrakar@gmail.com>)
List pgsql-general
sam <sam.mahindrakar@gmail.com> writes:
> ERROR: cannot have more than 2^32-1 commands in a transaction

> But this error is occuring in a function that iam least expecting it
> to occur in.

If you haven't marked the function as read-only (IMMUTABLE or STABLE)
then each statement in it counts as a command.  At least in pre-8.3
releases.  You might find that updating to 8.3 would eliminate the
need to change your code.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: simple update queries take a long time - postgres 8.3.1
Next
From: "Jeff Wigal (Referee Assistant)"
Date:
Subject: Re: Connection reset by peer / broken pipe