Is it possible? I have created a function to return "setof refcursor" and it executes correctly, but PDO fails when I call nextRowset. If anyone has an answer and wants StackOveflow points, I posted this here (with more details too). http://stackoverflow.com/questions/951628/can-you-return-multiple-result -sets-using-pdo-and-postgresql Matthew Hartman Programmer/Analyst Information Management, ICP Kingston General Hospital (613) 549-6666 x4294 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php