pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedFiguring out which command failed
2+ messages / 2 participants
[nested] [flat]
* Figuring out which command failed
@ 2005-11-07 21:30 Ralph Mason <ralph.mason@telogis.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ralph Mason @ 2005-11-07 21:30 UTC (permalink / raw)
To: pgsql-performance
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Figuring out which command failed
@ 2005-11-08 23:26 Thomas F. O'Connell <tfo@sitening.com>
parent: Ralph Mason <ralph.mason@telogis.com>
0 siblings, 0 replies; 2+ messages in thread
From: Thomas F. O'Connell @ 2005-11-08 23:26 UTC (permalink / raw)
To: Ralph Mason <ralph.mason@telogis.com>; +Cc: pgsql-performance
On Nov 7, 2005, at 3:30 PM, Ralph Mason wrote:
> 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
2PC might not've been ready yesterday, but it's ready today!
http://www.postgresql.org/docs/whatsnew
--
Thomas F. O'Connell
Database Architecture and Programming
Co-Founder
Sitening, LLC
http://www.sitening.com/
110 30th Avenue North, Suite 6
Nashville, TN 37203-6320
615-469-5150
615-469-5151 (fax)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-11-08 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-07 21:30 Figuring out which command failed Ralph Mason <ralph.mason@telogis.com>
2005-11-08 23:26 ` Thomas F. O'Connell <tfo@sitening.com>
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