pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Luiz Rafael Culik Guimaraes <culikr@brturbo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: number os commands inside transaction block
Date: Mon, 31 Jan 2005 15:54:05 -0700
Message-ID: <20050131225405.GA51669@winnie.fuhr.org> (raw)
In-Reply-To: <045701c507e4$5c1c1790$0105a8c0@luiz>
References: <6c21003b0501301141234c256b@mail.gmail.com>
	<20050131132701.G12960@megazone.bigpanda.com>
	<043f01c507df$9174a790$0105a8c0@luiz>
	<20050131221306.GA51538@winnie.fuhr.org>
	<045701c507e4$5c1c1790$0105a8c0@luiz>

On Mon, Jan 31, 2005 at 08:29:42PM -0200, Luiz Rafael Culik Guimaraes wrote:
> 
> i´m trying to solve the follow message
> current transaction is aborted, queries ignored until end of transaction
> block

A previous command in the transaction has failed; no more commands
will be executed until you issue a ROLLBACK (or a COMMIT, but the
transaction will be rolled back due to the error).  If you're doing
error checking on every command then you should be able to discover
which command failed.

PostgreSQL 8.0 has savepoints so you can roll back part of a
transaction and continue after an error, but that might not be
what you need.

> some one tell me this is defined inside postgres sources
> i recive this message when i execute an certain number of queries inside an 
> begin/commit block

Transactions can have 2^32 - 1 (4294967295) commands, so I'd be
surprised if you were hitting that limit.  If you were, you should
see the following error:

cannot have more than 2^32-1 commands in a transaction

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (5+ messages)

Message-ID: <20050131225405.GA51669@winnie.fuhr.org>
Permalink:  ../20050131225405.GA51669@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050131225405.GA51669@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, culikr@brturbo.com
  Subject: Re: number os commands inside transaction block
  In-Reply-To: <20050131225405.GA51669@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox