Postgresql Window Function First Value