Re: access to lexems or access to parsed elements - Mailing list pgsql-general

From Daniel Verite
Subject Re: access to lexems or access to parsed elements
Date
Msg-id ef96a465-029a-4ad4-b82c-9066ff7241cc@mm
Whole thread Raw
In response to access to lexems or access to parsed elements  ("Massa, Harald Armin" <harald@2ndQuadrant.de>)
List pgsql-general
    Massa, Harald Armin wrote:

> select ts_parse('default','the quick brown fox jumped over the lazy fox')
>
> (1,the)
> (12," ")
> (1,quick)
> [...]
> (1,fox)
>
> is a set-returning-function, giving me 17 records of type pseudo-record.
> Stopwords still in there, so what. But: No chance of accessing the second
> field in that record.

What about:
select w from ts_parse('default','the quick brown fox jumped over the lazy
fox')
  as lexems(i,w);


Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Condor
Date:
Subject: Re: COPY FROM how long should take?
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: Postgresql 9.0.4 SRPMS