//EDIT: Ach so, ihr meint PL/Perl. http://www.postgresql.org/docs/8.1/interactive/xplang.html http://www.postgresql.org/docs/8.1/interactive/plperl.html Interessante Angelegenheit!