Hello,
I am not sure if I understand, but when I have some select which does not return any row, PostgreSQL does not report anything to me. But I can evaluate the pg_NumRows($result_of_pg_exec) and when it is equal to 0, then I know that there was no row in database.
Show me concrete example.
Zdenek