pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ralph Mason <ralph.mason@telogis.com>
To: pgsql-performance@postgresql.org
Subject: Figuring out which command failed
Date: Tue, 08 Nov 2005 10:30:15 +1300
Message-ID: <436FC767.1010702@telogis.com> (raw)

Hi,

I have a transaction that has multiple separate command in it (nothing 
unusual there).

However sometimes one of the sql statements will fail and so the whole 
transaction fails.

In some cases I could fix the failing statement if only I knew which one 
it was.  Can anyone think of any way to get which statement actually 
failed from the error message?  If the error message gave me the line of 
the failure it would be excellent, but it doesn't.  Perhaps it would be 
easy for me to patch my version of Postgres to do that?

I realize I could do this with 2 phase commit, but that isn't ready yet!

Any thoughts or ideas are much appreciated

Thanks
Ralph



view thread (2+ messages)  latest in thread

Message-ID: <436FC767.1010702@telogis.com>
Permalink:  ../436FC767.1010702@telogis.com/
Also on:    postgresql.org/message-id/436FC767.1010702@telogis.com

 · 

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-performance@postgresql.org
  Cc: ralph.mason@telogis.com
  Subject: Re: Figuring out which command failed
  In-Reply-To: <436FC767.1010702@telogis.com>

* 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