Re: [GENERAL] Catching errors inside a LOOP is causing performance issues - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] Catching errors inside a LOOP is causing performance issues
Date
Msg-id CAKFQuwabnERrrAPKJaTaJ_RBuDvfoDZbinnqed+DPPeHYkJnCw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Catching errors inside a LOOP is causing performanceissues  (Denisa Cirstescu <Denisa.Cirstescu@tangoe.com>)
List pgsql-general
On Thu, Sep 28, 2017 at 1:08 AM, Denisa Cirstescu <Denisa.Cirstescu@tangoe.com> wrote:

Hi Tom,

You said that trapping an arbitrary exception is a “fairly expensive mechanism”.

​I suppose a better (though maybe not perfectly accurate) wording is that setting up the pl/pgsql execution layer to trap "arbitrary SQL-layer exceptions"​ is fairly expensive.  Even if the user specifies specific errors the error handling mechanism in pl/pgsql is code for generic (arbitrary) errors being given to it.

David J.

pgsql-general by date:

Previous
From: Seamus Abshere
Date:
Subject: [GENERAL] Function to return per-column counts?
Next
From: ""
Date:
Subject: [GENERAL] pg_stat_tmp and pg_upgrade