If you're getting this message while programmatically returning a result set from a postgres function:

ERROR: cursor "<unnamed portal 1>" does not exist

This means that you committed your connection before you tried to access the returned result set. In postgres, all cursors are closed on commit, so move the commit after all the result set retrievals.
Back to leroybrown.com