Manual debugging with RAISE NOTICE