I am trying to initialize an array array_entries. Tries array_fill as array_fill(0,array_entries) but dint work.
create or replace function vin_temp_test1(k date,x varchar) RETURNS float AS $$
declare
array_entries int [];
curs4 CURSOR FOR select * from temp_table;
record_type1 record;
fetch curs4 into record_type1;
exit when not found;
loop
-- trying to intialize the array array_entries here
loop
--filling the array inside this loop.
end loop;
end loop;