Postgresql Pivot Rows To Columns In Excel