Generate Subscripts Postgresql W3schools