https://blog.gaerae.com/2015/09/postgresql-multiple-rows-and-json-or-string.html