> How can I put a '^' befor a variable of VARCHAR type in a function?
>
Is this what you are looking for ... the concatentation operator?
select '^' || 'sometext'::varchar;
If you are asking about doing that in the function call :
select myfunction( '^' || var);
Andy