Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 93C8C2E0088 for ; Fri, 29 Feb 2008 00:43:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 40617-05 for ; Fri, 29 Feb 2008 00:43:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 017DA2E0086 for ; Fri, 29 Feb 2008 00:43:09 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1T4h520022012; Thu, 28 Feb 2008 23:43:05 -0500 (EST) To: Alex Hochberger cc: pgsql-sql@postgresql.org Subject: Re: pl/pgsql and error handling In-reply-to: <650E1D02-A244-44F4-81A4-5977F8D879E8@dsgi.us> References: <650E1D02-A244-44F4-81A4-5977F8D879E8@dsgi.us> Comments: In-reply-to Alex Hochberger message dated "Thu, 28 Feb 2008 14:10:47 -0500" Date: Thu, 28 Feb 2008 23:43:05 -0500 Message-ID: <22011.1204260185@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/235 X-Sequence-Number: 30326 Alex Hochberger writes: > Is it possible to grab access to the actually user-friendly error > message? Doesn't the SQLERRM variable do what you want? regards, tom lane