Re: Counting the occurences of a substring within a very large text

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: Counting the occurences of a substring within a very large text
Дата
Msg-id 4af08c5ca8ee2d5defafdd5b7f0e3841@smtp.hushmail.com
обсуждение исходный текст
Ответ на Counting the occurences of a substring within a very large text  (Marc Mamin <M.Mamin@intershop.de>)
Ответы Re: Counting the occurences of a substring within a very large text  (Marc Mamin <M.Mamin@intershop.de>)
Список pgsql-general
> Hello,
>
> I'd like to count the number  linebreaks within a string,
> but I get a memory allocation error when using regexp_matches or regexp_split_to_table.
>
> Any idea for an alternative to this problem  ?
>
> select count(*)-1 from
> (  select regexp_split_to_table(full_message,'(\n)', 'g')
>    from mytable
>    where id =-2146999703
> )foo;
>
> ERROR:  invalid memory alloc request size 1447215584
>
> regards,
>
> Marc Mamin
>

Hi,

what's the size of full_message from mytable where id =-2146999703?

Also: Postgres version? OS? any extensions installed?

Bye,
Chris.




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

Предыдущее
От: Marc Mamin
Дата:
Сообщение: Counting the occurences of a substring within a very large text
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: Counting the occurences of a substring within a very large text