CREATE OR REPLACE FUNCTION lexema_test() RETURNS VOID AS $body$ DECLARE lex lexema :=new_lexema(); BEGIN END; $body$ LANGUAGE PLPGSQL SECURITY DEFINER;
Then I got: ERROR: default value for row or record variable is not supported LINE 17: lex lexema :=new_lexema();