Praveen Kumar @PraveenInPublic
Never though debugging was possible in SQL (plpgsql)
It seems like I am going back to olden days of PHP programming with print() and exit
RAISE NOTICE 'Function started at %', NOW();