Postgresql Text To Array Python Practice