Re: Converting PL/SQL to PL/PGSQL

From: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
To: Klaus Reger <K(dot)Reger(at)gmx(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Converting PL/SQL to PL/PGSQL
Date: 2001-05-10 17:23:11
Message-ID: 20010510112311.A11958@cc.usu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 10, 2001 at 03:33:27PM +0200, Klaus Reger wrote:
> Hi all!
>
> I have to convert functions and procedures from Oracle to PostgreSQL. I
> looked at all the stuff of the Pg-Homepage and I ask me if there are any
> tools, that support the conversion.

That help you in the conversion, no.
Have you looked at the "Porting From Oracle PL/SQL" chapter of the
PostgreSQL Programmer's Guide? I am expanding that guide to include more
things, like queries. The goas is for it to become a "Porting From
Oracle" guide.

> Writing PS/PGSQL tools seems to be a bit hard, because of the existing
> tool-infrastructure on linux. Are there are tools I have overseen?

Heh? What do you mean by this? There are zillions of editors, both
console and graphical, where you can do this.
I have found pgaccess to be vey useful in testing. In the OpenACS
project (www.openacs.org) we port thousands of lines of Oracle code to
PostgreSQL, mostly using vim or Emacs.
For testing, I use pgaccess because it lets me drop/recreate a
function easily, plus it escapes quotes. One thing I don't like about it
is that it's hard to keep things indented.

> - A WWWdb-Application for editing and testing of SQL-Procedures over a
> WEB-frontend

Cool. Anywhere we can see this in action?

> - A perl-script, that does basic conversions between PL/SQL <-> XML <->
> PL/PGSQL (The Procedure-definition is converted completely, the code-block
> a little bit)

Hmmm. *Very* interesting. Link? Source for this anywhere? We could
probably use this at OpenACS.

-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net
http://www.sdl.usu.edu - Space Dynamics Lab, Developer
(D)inner not ready: (A)bort (R)etry (P)izza

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message bpalmer 2001-05-10 17:25:11 Regression tests for OBSD scrammed..
Previous Message Bruce Momjian 2001-05-10 17:20:59 7.2 items