int affected_rows()
Returns the number of affected rows by this query.
status_command_complete()
This function is PostgreSQL-specific, and thus it is not available through the generic SQL-interface.