Re: How to get normalized data from tekst column - Mailing list pgsql-general

From Andrus Moor
Subject Re: How to get normalized data from tekst column
Date
Msg-id F2C08AF304684C0EA7C616ADAF741B32@dell2
Whole thread Raw
In response to How to get normalized data from tekst column  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: How to get normalized data from tekst column  (David Johnston <polobo@yahoo.com>)
List pgsql-general
Harald,

Thank you.

> The query

>SELECT id, a[1] AS name, a[2] AS percent
>FROM ( SELECT id, regexp_split_to_array(regexp_split_to_table(comment, ',
>*'), '\W+') AS a
>  FROM project ) AS dummy

>should work un every halfway recent PostgreSQL version - dunno about 8.1.


I tried it but got error in 8.1:

ERROR:  function regexp_split_to_table(text, "unknown") does not exist
HINT:  No function matches the given name and argument types. You may need
to add explicit type casts.

how to get data in 8.1 ?

Andrus.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Convert string to UNICODE & migration FROM 7.4 to 9.1
Next
From: Cédric Villemain
Date:
Subject: Re: General performance/load issue