Performance of plpgsql with exception handlers - Mailing list pgsql-novice

From Walker, Jed S
Subject Performance of plpgsql with exception handlers
Date
Msg-id 4A59B6AA01F1874283EA66C976ED51FC0E1A6B@COENGEXCMB01.cable.comcast.com
Whole thread Raw
Responses Re: Performance of plpgsql with exception handlers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice

The documentation states "A block containing an EXCEPTION clause is significantly more expensive to enter and exit than a block without one. Therefore, don't use EXCEPTION without need."

Our application developers would like to get back a simple code ( a number) for any error that indicates what it is, and possibly a message. So, as we would with Oracle we wanted to code in exception handlers to do this, but the documenation has us concerned. Is putting exception handlers into the pgsql code really a big performance hit?

Thanks,

      Jed S. Walker

pgsql-novice by date:

Previous
From: Sean
Date:
Subject: Re: phppgadmin
Next
From: Tom Lane
Date:
Subject: Re: Performance of plpgsql with exception handlers