How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Multiple result sets: How Database Migration Service automates SQL server to PostgreSQL translation

calendar_today August 4, 2026 person Assaf Fraenkel domain gcp

In the Medium blog post, “ From MARS to SETOF REFCURSOR: Migrating Multi-Result Stored Procedures to PostgreSQL ,” we explored the fundamental architectural differences between SQL Server and PostgreSQL regarding multiple result sets. We looked at how SQL Server natively streams multiple tabular streams from a single execution, whereas PostgreSQL requires a more deliberate strategy using explicit cursor manipulation. If you’re facing a massive database migration with hundreds of these procedures, manually rewriting them is a non-starter.

open_in_new Read original post