pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Claus Heiko Niesen <cniesen@gmx.net>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can this query be optimized?
Date: Thu, 8 Nov 2001 14:00:52 -0600
Message-ID: <20011108140051.B11680@rice.edu> (raw)
In-Reply-To: <5.1.0.14.2.20011108122508.00ae2350@pop.gmx.net>
References: <16760.1005229805@sss.pgh.pa.us>
	<5.1.0.14.2.20011108122508.00ae2350@pop.gmx.net>

On Thu, Nov 08, 2001 at 01:19:25PM -0600, Claus Heiko Niesen wrote:
> At 10:49 AM 11/08/2001, Josh wrote:
> 
> I just tried to build an index to see what the explain path would do but I 
> get an error on the word extract:
> 
> # create index week_pics_month_key on week_pics (extract(year from 
> time_stamp), extract(month from time_stamp));
> ERROR:  parser: parse error at or near "extract"

It's erroring on the second use of extract(). You can have multicolumn
indices, or you can have functional indices. You can't have a
multifunctional index (right now. I have'nt looked at the code to
see why.)

Ross



view thread (7+ messages)  latest in thread

Message-ID: <20011108140051.B11680@rice.edu>
Permalink:  ../20011108140051.B11680@rice.edu/
Also on:    postgresql.org/message-id/20011108140051.B11680@rice.edu

 · 

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: reedstrm@rice.edu, cniesen@gmx.net, josh@agliodbs.com
  Subject: Re: Can this query be optimized?
  In-Reply-To: <20011108140051.B11680@rice.edu>

* 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