Postgresql String To Array Get Last Item In Array Python Declaration