pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: 8.2.4 Won't Build 8.1 Functional Indexes
Date: Wed, 6 Jun 2007 14:12:12 -0400
Message-ID: <1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.com> (raw)

I am testing upgrades to 8.2.4 from 8.1.3 and am having problems with
8.2.4balking at the functional indexes I have created.  These indexes
exist and
work fine in 8.1.3, so why is 8.2.4 rejecting them?

Index 1:
CREATE INDEX acceptedbilling_to_date_accepted_billing_dt_idx
  ON acceptedbilling
  USING btree
  (to_date(accepted_billing_dt::text, 'yyyymmdd'::text));.

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

Index 2:
CREATE INDEX header_835_billing_idx
  ON ct_835.header_835
  USING btree
  (to_date(to_char(create_timestamp, 'yyyy-mm-dd'::text),
'yyyy-mm-dd'::text));

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


This is on 8.2.4 installed from the official RPMS.

thanks,

Chris
RH AS 4
PG 8.2.4 from RPMS

view thread (6+ messages)  latest in thread

Message-ID: <1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.com>
Permalink:  ../1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: revoohc@gmail.com
  Subject: Re: 8.2.4 Won't Build 8.1 Functional Indexes
  In-Reply-To: <1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.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