Removed redundant pg_is_busy function