On 09/26/12 17:56, joao viegas wrote: > > does anybody knows how can I have something like: > select function_that_returns_int(NEW.field1) into NEW.field2; I think you want: select into NEW.field2 function_that_returns_int(NEW.field1); or even: NEW.field2 := function_that_returns_int(NEW.field1); Bosco. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general