Re: Avoid huge perfomance loss on string concatenation

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Avoid huge perfomance loss on string concatenation
Date: 2007-12-05 11:32:08
Message-ID: fj628c$2vr0$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> just small correction here...expressions like that in the create index
> need an extra set of parens (but I agree with your sentiment):
> CREATE INDEX dokindex ON dok ((kuupaeve||kellaaeg))

I tried

CREATE INDEX dok_kuupaev_kellaaeg_idx ON dok ((kuupaev||kellaaeg));

but got error

ERROR: functions in index expression must be marked IMMUTABLE
SQL state: 42P17

How to create such index ?

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Grey 2007-12-05 11:43:08 Re: SQL Query
Previous Message Florian Aumeier 2007-12-05 11:20:46 thesaurus support in postgresql