Unix Technical Forum

Moving from Transact SQL to PL/pgsql

This is a discussion on Moving from Transact SQL to PL/pgsql within the pgsql Sql forums, part of the PostgreSQL category; --> Hello: I am implementing a new system using Postgres. Well most of the system will be new, but some ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:53 AM
Duffy House
 
Posts: n/a
Default Moving from Transact SQL to PL/pgsql



Hello:

I am implementing a new system using Postgres. Well most of the system will
be new,
but some parts will be very similar to a system currently running under
M$-SQL.

The first issue will be getting up to speed on PL/pgsql. Where can I find
primer on PL/pgsql, with lots of examples? How silimar is PL/pgsql to PL/SQL
under Oracle?

Thanks in Advance.

kd



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:53 AM
John DeSoi
 
Posts: n/a
Default Re: Moving from Transact SQL to PL/pgsql


On Jan 23, 2005, at 10:22 PM, Duffy House wrote:

> The first issue will be getting up to speed on PL/pgsql. Where can I
> find
> primer on PL/pgsql, with lots of examples? How silimar is PL/pgsql to
> PL/SQL
> under Oracle?


The PostgreSQL documentation is the place to start:

http://www.postgresql.org/docs/8.0/i...e/plpgsql.html

The PostgreSQL distribution has a file with some examples in it:

src/test/regress/sql/plpgsql.sql

The pgEdit distribution (http://pgedit.com/download) has a fairly
extensive plpgsql example for importing and analyzing web server logs.

I'm not familiar with Oracle, but there is a porting section in the
documentation:

http://www.postgresql.org/docs/8.0/i...l-porting.html



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com