X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C67515359C for ; Thu, 31 Mar 2005 10:16:57 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60447-10 for ; Thu, 31 Mar 2005 09:16:52 +0000 (GMT) Received: from secf.com (209-128-104-244.BAYAREA.NET [209.128.104.244]) by svr1.postgresql.org (Postfix) with ESMTP id 7F66B5393E for ; Thu, 31 Mar 2005 10:16:51 +0100 (BST) Received: from dinesh by secf.com (MDaemon.PRO.v7.2.2.R) with ESMTP id md50000561007.msg for ; Thu, 31 Mar 2005 01:17:26 -0800 Reply-To: From: "Dinesh Pandey" To: Subject: Help Date: Thu, 31 Mar 2005 14:44:46 +0530 Organization: Second Foundation India P Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0099_01C53600.310617F0" X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcU10hUWVCCiEJ4vSF6iZJhujyZUCA== Importance: High X-Authenticated-Sender: dpandey@secf.com X-Spam-Processed: mail.secf.com, Thu, 31 Mar 2005 01:17:26 -0800 (not processed: message from valid local sender) X-MDRemoteIP: 220.227.32.11 X-Return-Path: dpandey@secf.com X-MDaemon-Deliver-To: pgsql-bugs@postgresql.org X-MDAV-Processed: mail.secf.com, Thu, 31 Mar 2005 01:17:30 -0800 Message-Id: <20050331091651.7F66B5393E@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.115 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_MESSAGE, MSGID_FROM_MTA_ID, X_MSMAIL_PRIORITY_HIGH, X_PRIORITY_HIGH X-Spam-Level: ** X-Archive-Number: 200504/16 X-Sequence-Number: 11468 This is a multi-part message in MIME format. ------=_NextPart_000_0099_01C53600.310617F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I have installed PostgreSQL 8.0.1 on Solaris 9. I am porting my database from Oracle 9i to PostgreSQL. I am using PL/pgSQL language. In Oracle we can get error message from "SQLERRM" keyword and inserting it into table. How can I get error message/code in PostgreSQL after an EXCEPTION or RAISE EXCEPTION occurs in EXCEPTION block?? Pls help me or send me some example. Thanks Dinesh Pandey ------=_NextPart_000_0099_01C53600.310617F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
 
I = have installed=20 PostgreSQL 8.0.1 on Solaris 9.
 
I am = porting my=20 database from Oracle 9i to PostgreSQL. I am using PL/pgSQL=20 language.
 
In = Oracle we can=20 get error message from "SQLERRM" keyword and inserting it into = table.=20
 
How = can I get=20 error message/code in PostgreSQL after an EXCEPTION or RAISE = EXCEPTION=20 occurs in EXCEPTION block??
 
Pls = help me or=20 send me some example.
 
 
Thanks
Dinesh=20 Pandey
 
------=_NextPart_000_0099_01C53600.310617F0--