pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Klingler <richard@klingler.net>
To: pgsql-sql@postgresql.org
Subject: Re: Natural sort order
Date: Wed, 29 Feb 2012 17:14:21 +0100
Message-ID: <20120229171421907526.563c7a4e@klingler.net> (raw)
In-Reply-To: <1604.1330531726@sss.pgh.pa.us>
References: <20111217113306531983.1eb85a86@klingler.net>
	<CAP_rwwkrnuANFjirZvkS=Ca2gejQvQa-xnM-vXsOFSQ1Jy92cQ@mail.gmail.com>
	<20120228133835204823.bbf29d1f@klingler.net>
	<1604.1330531726@sss.pgh.pa.us>

Actually got it figured...for some reason it had the function twice (o;

But with or without function index the time to query stays the same...around 110msec for 24 results...


cheers
richard

On Wed, 29 Feb 2012 11:08:46 -0500, Tom Lane wrote:
> Richard Klingler <richard@klingler.net> writes:
>> Took some time until I could try out this...
>> But as soon I want to create the fcuntion based index it tells me:
>> 	Error : ERROR:  functions in index expression must be marked IMMUTABLE
> 
> FWIW, this example works fine for me.  Maybe you have some weird
> user-defined version of substr() or ~ that isn't immutable?
> 
> 			regards, tom lane
> 
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)  latest in thread

Message-ID: <20120229171421907526.563c7a4e@klingler.net>
Permalink:  ../20120229171421907526.563c7a4e@klingler.net/
Also on:    postgresql.org/message-id/20120229171421907526.563c7a4e@klingler.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: richard@klingler.net
  Subject: Re: Natural sort order
  In-Reply-To: <20120229171421907526.563c7a4e@klingler.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox