Given: PHP 4.x PostgreSQL 7.3.x In 'psql' monitor: declare foo cursor for select * from humongous_table; move forward all in foo;
The second query will print out a number which informs one of the actual number of rows that are in the cursor's query's result set, if one were to actually fetch them all. I would like to get to that number in PHP. Alas, as far as I can tell, there is to way to get that number through the PHP API... For sure: pg_num_rows -- only counts rows actually "fetched" pg_last_notice -- nope pg_result_error -- nope pg_result_status -- nope No other documented functions seem appropriate, though I may have missed one... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php