Postgresql Declare Array Variable Length Intake