Search Postgresql Archives

Creating index on concatenated char columns fails is Postgres 9 (regression)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steps to reproduce:
 
Run commands
 
    create temp table test (kuupaev date, kellaaeg char(5)  ) on commit drop;
    create index test on test ((kuupaev||kellaaeg));    
 
in
 
    "PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 32-bit"
 
Observed result:
 
    ERROR:  functions in index _expression_ must be marked IMMUTABLE
 
In
 
    "PostgreSQL 8.4.4, compiled by Visual C++ build 1400, 32-bit"
 
those commands work OK.
 
I need this index to speed up query
 
SELECT
    max( kuupaev||kellaaeg )
  from ALGSA
  where laonr=?nlaonr and kuupaev <=?prmLOPP and kuupaev||kellaaeg <= ?someparam
 
How to fix or other way to speed this query?
 
 
Andrus.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux