|
|
|
|
|
by hungerstrike
2933 days ago
|
|
Can you request multiple heterogeneous result-sets from PG now, with something that looks like a stored procedure? I'd love to see what that looks like. In SQL Server it's as easy as putting 2 SELECT statements in the same procedure. |
|
Not prettily. You can return cursors, you can use json etc, ...
But you can pipeline SQL statements. I.e. just send N SQL statements (including bind parameters etc, the protocol is the same) without waiting for results, and then process the results as they come in. If you want to avoid latency penalties that makes much more sense in my opinion than having to wrap multiple statements in a function.