Re: Avoid huge perfomance loss on string concatenation - Mailing list pgsql-general

From Andrus
Subject Re: Avoid huge perfomance loss on string concatenation
Date
Msg-id fj628c$2vr0$1@news.hub.org
Whole thread Raw
In response to Avoid huge perfomance loss on string concatenation  ("Andrus" <kobruleht2@hot.ee>)
List 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.



pgsql-general by date:

Previous
From: "Wim Chalmet"
Date:
Subject: Re: Vacuum output redirect
Next
From: "Andrus"
Date:
Subject: Re: Avoid huge perfomance loss on string concatenation