Re: Setting sqlstate in plpgsql function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chris Hoover" <revoohc(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Setting sqlstate in plpgsql function
Date: 2007-04-06 17:45:28
Message-ID: 15165.1175881528@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Chris Hoover" <revoohc(at)gmail(dot)com> writes:
> Is where anyway to set the sqlstate to a custom value when inside a plpgsql
> function?

Nope :-(. There's been some discussion of extending plpgsql's RAISE
command to allow specification of a SQLSTATE, but nothing's been done.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2007-04-06 19:35:59 alter user log entry, too much information ;)
Previous Message Chris Hoover 2007-04-06 17:26:33 Setting sqlstate in plpgsql function