X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CFFEC533A3 for ; Mon, 4 Apr 2005 20:36:01 +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 35027-06 for ; Mon, 4 Apr 2005 19:36:00 +0000 (GMT) Received: from guinness.cs.stevens.edu (guinness.cs.stevens-tech.edu [155.246.89.8]) by svr1.postgresql.org (Postfix) with ESMTP id 69B93533A0 for ; Mon, 4 Apr 2005 20:35:59 +0100 (BST) Received: from pink-elephant.cs.stevens.edu (pink-elephant.cs.stevens-tech.edu [155.246.81.117]) by guinness.cs.stevens.edu (Postfix) with ESMTP id 4BED7141648 for ; Mon, 4 Apr 2005 15:35:58 -0400 (EDT) Received: by pink-elephant.cs.stevens.edu (Postfix, from userid 4405) id E7F751EFDCA; Mon, 4 Apr 2005 15:35:57 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pink-elephant.cs.stevens.edu (Postfix) with ESMTP id B24ED1EFB0E for ; Mon, 4 Apr 2005 15:35:57 -0400 (EDT) Date: Mon, 4 Apr 2005 15:35:57 -0400 (EDT) From: Yasir Malik X-X-Sender: ymalik@pink-elephant.cs.stevens-tech.edu To: PostgreSQL Subject: Re: Migrated Oracle database to PostgreSQL ?? In-Reply-To: <20050404134338.168FF53400@svr1.postgresql.org> Message-ID: References: <20050404134338.168FF53400@svr1.postgresql.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/47 X-Sequence-Number: 20940 > 1. How to migrate Procedures and Packages from Oracle to PostgreSQL???? > > > 2. How to find error messages in PostgreSQL thrown from an Exception (as we > can get messages in Oracle with "SQLERRM" keyword) > for example -- > > --Raise an exception > RAISE EXCEPTION 'No Data found for record id % ' ,recordid > > --Insert exception messages into database > EXCEPTION > IF RAISE_EXCEPTION THEN > -- my_insert_function(SQLERRM); All your answers can be found here: http://www.postgresql.org/docs/8.0/static/plpgsql.html I can't say if PL/pgSQL is as good as PL/SQL, though. Yasir