I was editing a Postgres function using \ef and changed the RETURN type. Didn't realize this was a no-go for saving it.
mattswheels=# \ef fib
mattswheels-# \g
ERROR: cannot change return type of existing function
HINT: Use DROP FUNCTION fib(numeric) first.
I wrote a fair amount of code -- is there a way to recover it? I know vim said it saved to a /tmp folder somewhere but I'm not sure of the path.