Postgres Function To Insert Into Multiple Rows