Kaarel <krl@xxxxxxxxxx> writes: > Then I tried to use this: > v_result v_data%TYPE > where v_data is an argument of the same function with anyelement > datatype, but no luck. Define "no luck". What did you do *exactly*, and what happened? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general