I never used these two features in PostgreSQL. Which language is used to write stored procedures and triggers in PGSQL? Is it the same that Oracle or SQL Server follows or it is C?
+2
A:
Far more common for writing functions is pl/pgsql but you can use C if you really want to.
Nev Stokes
2010-10-29 15:33:01
Is there any option to use standard Oracle or SQL Server style?
RPK
2010-10-29 15:33:56
Not that I know of. In addition to the core procedural languages there are some third party ones: http://www.postgresql.org/docs/8.0/interactive/external-projects.html
Nev Stokes
2010-10-29 15:37:37
Way more appropriate link would be: http://www.postgresql.org/docs/current/static/xplang.html
Milen A. Radev
2010-10-30 11:48:03
+1
A:
It's called PL/PgSQL and is similar to others. http://www.postgresql.org/docs/8.1/static/plpgsql.html
You can call C code functions as well.
mootinator
2010-10-29 15:33:20