create or replace procedure test_insert_prepare2(howmany int) language plpgsql as $$ declare counter integer:=0; declare note int;