Postgresql Loop Through Array Backwards 3 With A Line