Re: Divide table raw into chunks

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Divide table raw into chunks
Дата
Msg-id CAKFQuwa4WREhMBQW0=vmUyQAEVj7evRHO4et2qo0gxEGc=57pg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Divide table raw into chunks  ("Miguel Beltran R." <yourpadre@gmail.com>)
Список pgsql-novice
I have 4623 Sent ids (sentences) and each is 10,000 characters long. I want to divide them into 32-40 character long chunks. 

​I suppose replace {1,5} with {32,40} should work...the question is what is so special about 32-40 and why a range instead of just saying 40?  Does it really matter if the final group is less than 32 (assuming every other group was 40)?​

SELECT regexp_matches[1] FROM regexp_matches('0123456789012','(.{1,5})','g')

​Alter to taste.

David J.​

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Miguel Beltran R."
Дата:
Сообщение: Re: Divide table raw into chunks
Следующее
От: Jozef Riha
Дата:
Сообщение: help needed with error during upgrade (9.4 -> 9.5)