Hi! Is it possible to know in a loop in pl/pgsql if the next element is de last? exemple
DECLAREasds Record;
BEGIN
FOR asds IN EXECUTE 'select id from user_table' LOOP
IF asds.id.next = last THEN ...... END IF;
END LOOP;
tks