HINT: If you want to discard the results of a SELECT, use PERFORM instead.
PERFORM do_something(m.id)
FROM MyTable m
WHERE m.IsActive;
PERFORM
is the PL/PgSQL alternative for SELECT
for when you want to throw the results away. It cannot be used outside PL/PgSQL. For more information, see the manual.