converting some stuff from oracle to posgresql.
I have a statement like this:
select count(name) into STRICT l_record_exists from tab where