From: Dinesh Pandey <dpandey@secf.com>
To: 'Yasir Malik' <ymalik@cs.stevens.edu>
To: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: Re: Migrated Oracle database to PostgreSQL ??
Date: Tue, 5 Apr 2005 01:27:30 +0530
Message-ID: <20050404200003.50FBB52968@svr1.postgresql.org> (raw)
In-Reply-To: <Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu>
Yes, but after creating some function, we can get sql error messages. But I
not comfortable that much in that.
For Procedures and Packages we can use Functions....
Any other option in pl/PGSQL????
Thanks
Dinesh Pandey
-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Yasir Malik
Sent: Tuesday, April 05, 2005 1:06 AM
To: PostgreSQL
Subject: Re: [SQL] Migrated Oracle database to PostgreSQL ??
> 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
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
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: dpandey@secf.com, ymalik@cs.stevens.edu
Subject: Re: Migrated Oracle database to PostgreSQL ??
In-Reply-To: <20050404200003.50FBB52968@svr1.postgresql.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