pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yasir Malik <ymalik@cs.stevens.edu>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Migrated Oracle database to PostgreSQL ??
Date: Mon, 4 Apr 2005 15:35:57 -0400 (EDT)
Message-ID: <Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu> (raw)
In-Reply-To: <20050404134338.168FF53400@svr1.postgresql.org>
References: <20050404134338.168FF53400@svr1.postgresql.org>

> 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



view thread (3+ messages)  latest in thread

Message-ID: <Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu>
Permalink:  ../Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu/
Also on:    postgresql.org/message-id/Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: ymalik@cs.stevens.edu
  Subject: Re: Migrated Oracle database to PostgreSQL ??
  In-Reply-To: <Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu>
  References: <20050404134338.168FF53400@svr1.postgresql.org> <Pine.NEB.4.60.0504041534170.24466@pink-elephant.cs.stevens-tech.edu>

* 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