Hacker News new | ask | show | jobs
by CSDude 4069 days ago
Does anybody use PG/PLSQL? I wonder how it compares in practice with Oracle PLSQL.
2 comments

As others have mentioned, they are similar but there are some gotchas. An example is hierarchical data: pgsql lacks start with/connect by. This means you have to write recursive queries using Common Table Expressions (with...as). Not a dealbreaker but it does mean some extra work.
Its quiet close I recall being impressed that i could reuse some Oracle Pl/SQL on Postgress
If you know PL/SQL, all you need is an example of the boilerplate that goes at the top and bottom of a PL/pgSQL procedure and you are good to go.