the problem here was not in Postgresql, but in the client that I used. pgAdmin III does not display the contents of an array of a certain size. about 4,5 thousand when using psql one problem does not arise.
in the pgAdmin user interface pgAdmin is possible to set "Maximum characters in a column" , and in my case it was 256, which makes little sense, but you copy and paste an array that looks empty in a notepad, you will find all the data.
Ereli source share