Re: How to know if an INSERT is done inside a function?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andre Lopes <lopes80andre(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to know if an INSERT is done inside a function?
Date: 2010-07-04 13:41:26
Message-ID: AANLkTinfwpvHRKgn-A3TSXD7zIKOjIdNX7kLsQc7KKnC@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jul 4, 2010 at 7:25 AM, Andre Lopes <lopes80andre(at)gmail(dot)com> wrote:
> Great! That [begin exception end] is what I need!
>
> Thank you Pavel.
>
> Best Regards,

Just a quick heads up: functions with exception handlers tend to be
more expensive than those without, even if the exception doesn't fire.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Davor J. 2010-07-04 13:43:16 Extending postgres objects with attributes
Previous Message Andre Lopes 2010-07-04 11:25:23 Re: How to know if an INSERT is done inside a function?