From: Michael Fuhr <mike@fuhr.org>
To: Dinesh Pandey <dpandey@secf.com>
Cc: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: Re: Error handling in pltcl
Date: Sun, 17 Apr 2005 22:32:32 -0600
Message-ID: <20050418043232.GA94872@winnie.fuhr.org> (raw)
In-Reply-To: <20050418035436.5B4E553827@svr1.postgresql.org>
References: <20050418035436.5B4E553827@svr1.postgresql.org>
On Mon, Apr 18, 2005 at 09:20:37AM +0530, Dinesh Pandey wrote:
>
> Can any one tell me how to handle error in PL/TCL language.
What kind of error? Have you tried using catch?
> On Error/Exception,
> In the exception block I want to call a FUNCTION (written in PL/pgSQL).
You could use spi_exec to SELECT the function.
If you still have trouble, then please post a simple example that
shows what you're trying to do.
BTW, pgsql-sql probably isn't the best place to ask PL/Tcl questions
since its description is "Discussion for users on SQL related
matters." pgsql-general or pgsql-interfaces might be more appropriate.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, dpandey@secf.com
Subject: Re: Error handling in pltcl
In-Reply-To: <20050418043232.GA94872@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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