Re: How to get normalized data from tekst column

From: "Andrus Moor" <eetasoft(at)online(dot)ee>
To: <hari(dot)fuchs(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get normalized data from tekst column
Date: 2011-11-24 20:40:42
Message-ID: F2C08AF304684C0EA7C616ADAF741B32@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cédric Villemain 2011-11-24 22:19:23 Re: General performance/load issue
Previous Message Tom Lane 2011-11-24 20:25:50 Re: Convert string to UNICODE & migration FROM 7.4 to 9.1