In order to use Unnest function I want convert a list to array.
This is my list of type text. It's an output of this function (How get all positions in a field in PostgreSQL?):
108,109,110,114,115,116,117,156,157,200,201,205
I convert to array with
array[108,109,110,114,115,116,117,156,157,200,201,205]
result is type text[]:
"{"108,109,110,114,115,116,117,156,157,200,201,205"}"
With this kind of array unnest function doesn't work so I think I want convert to array of Int
Thanks