Postgresql Substring Between Two Strings Oscillating Saws