Profiling ERROR Conditions - Mailing list pgsql-general

From Thomas F.O'Connell
Subject Profiling ERROR Conditions
Date
Msg-id ed51b512eb4f36729f9ab98276cf3acf@sitening.com
Whole thread Raw
List pgsql-general
I'm interested in getting some benchmark numbers from postgres in
situations that generate errors. Specifically, I'm trying to analyze
high-volume attempts to insert into tables such that unique constraints
(primary keys) are violated by duplicate keys.

EXPLAIN ANALYZE INSERT INTO ...

doesn't work because if the INSERT fails an ERROR is generated and no
statistics are returned. Does this mean that I'll just have to settle
for non-native benchmark/profiling numbers?

Just curious whether there's a native way to measure the performance
impact of ERROR conditions.

Thanks!

-tfo

--
Thomas F. O'Connell
Co-Founder, Information Architect
Sitening, LLC
http://www.sitening.com/
110 30th Avenue North, Suite 6
Nashville, TN 37203-6320
615-260-0005


pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: Understanding EXPLAIN ANALYZE output
Next
From: Christoph Pingel
Date:
Subject: Re: no self-joins in views? - works now!