views:

33

answers:

2

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
Is there any option to use standard Oracle or SQL Server style?
RPK
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
Way more appropriate link would be: http://www.postgresql.org/docs/current/static/xplang.html
Milen A. Radev
+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