pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Oleg <serovov@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5852: Function date_trunc is not IMMUTABLE
Date: Thu, 27 Jan 2011 14:26:49 +0100
Message-ID: <20110127132649.GA15777@depesz.com> (raw)
In-Reply-To: <201101271102.p0RB2kxi071325@wwwmaster.postgresql.org>
References: <201101271102.p0RB2kxi071325@wwwmaster.postgresql.org>

On Thu, Jan 27, 2011 at 11:02:46AM +0000, Oleg wrote:
> 
> The following bug has been logged online:
> 
> Bug reference:      5852
> Logged by:          Oleg
> Email address:      serovov@gmail.com
> PostgreSQL version: 8.3
> Operating system:   CentOS
> Description:        Function date_trunc is not IMMUTABLE
> Details: 
> 
> Please mark function date_trunc as IMMUTABLE for using in index.

it cannot be immutable. please check explanation in here:
http://www.depesz.com/index.php/2010/09/09/why-is-my-index-not-being-used/
search for "immutable".

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007



view thread (3+ messages)  latest in thread

Message-ID: <20110127132649.GA15777@depesz.com>
Permalink:  ../20110127132649.GA15777@depesz.com/
Also on:    postgresql.org/message-id/20110127132649.GA15777@depesz.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: depesz@depesz.com, serovov@gmail.com
  Subject: Re: BUG #5852: Function date_trunc is not IMMUTABLE
  In-Reply-To: <20110127132649.GA15777@depesz.com>
  References: <201101271102.p0RB2kxi071325@wwwmaster.postgresql.org> <20110127132649.GA15777@depesz.com>

* 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