Naravno da mogu. :)
Evo ti nekoliko razloga:
1. PostgreSQL je prilicno stabilan i mocan, da ispunjava i veoma zahtjevne zadatke.
2. Besplatan je i to bez ogranicenja. :)
3. PL/pgSQL je veoma slican Oracleovom PL/SQL-u.
4. Moguce je izvrsiti relativno lako migriranje sa Oraclea na PostgreSQL.
http://www.postgresql.org/docs...teractive/plpgsql-porting.html
PL/pgSQL is similar to PL/SQL in many aspects. It is a block-structured, imperative language, and all variables have to be declared. Assignments, loops, conditionals are similar. The main differences you should keep in mind when porting from PL/SQL to PL/pgSQL are:
- There are no default values for parameters in PostgreSQL.
- You can overload function names in PostgreSQL. This is often used to work around the lack of default parameters.
- No need for cursors in PL/pgSQL, just put the query in the FOR statement.
- In PostgreSQL you need to use dollar quoting or escape single quotes in the function body.
- Instead of packages, use schemas to organize your functions into groups.
- Since there are no packages, there are no package-level variables either. This is somewhat annoying. You may be able to keep per-session state in temporary tables, instead.