The project PSM (zero) is complete and needs you
Yesterday, Pavel Stehule finished work on the implementation of the procedural language SQL/PSM to PostgreSQL. At the moment, the language supports all you need: the the simple things, arrays, composite types (composites), triggers; the additional function that returns a table, IN/OUT parameters; the features SQL/PSM — warning, exception handlers (in most on the basis of SQLCODE), a SIGNAL or RESIGNAL statement; some of the features of DB2 and MySQL — multi assign operators, support for magic SQLSTATE and SQLCODE variables. Some examples: the create or replace function test74_2() returns text as $$ begin atomic declare not_found condition for sqlstate '03000'; declare undo handler for not_found begin declare xx, yy text; get stacked diagnostics xx = condition_identifier, yy = returned_sqlstate; return xx || 'Signal is handled' || yy; end; signal not_found; end; $$ language psm0; create or replace function test66(a int, r out int) as $$ begi...