Let’s start with the summary and work backwards: If you’re porting code from Microsoft SQL Server to Postgres, the big surprises are that Postgres stored procedures don’t return result sets. In Postgres, if you wanna return rows, you use a function – which you can also do in Microsoft SQL Server, of course. It’s one...