Can you create a temporary table within a function? In my functions I need to calculate some stuff.. Do some manipulations.. Then return some values.. For this, in MS SQL, I currently use temporary tables in my stored procs.. Can you do this in postgres? I can't seem to get it to work.. Thanks Loren