Re: Upgrading to 7.2 - Mailing list pgsql-hackers

From Chris Field
Subject Re: Upgrading to 7.2
Date
Msg-id 1013708037.1605.20.camel@tux.dogoodsoft.org
Whole thread Raw
In response to Upgrading to 7.2  (Chris Field <cfields@affinitysolutions.com>)
List pgsql-hackers
On Thu, 2002-02-14 at 12:31, Bruce Momjian wrote:
> Chris Field wrote:
>
> Checking application/pgp-signature: FAILURE
> -- Start of PGP signed section.
> > Thanks for responding, I am thinking it might be fairly beneficial to
> > upgrade.
> >
> > > Ummm, max() is an aggregate function, how can you create an index on
> > > it?
> >
> > In the postgresSQL Essential Reference by Barry Stinson it specifically
> > has a index topic on functional indexes, with the given example being
> > " CREATE INDEX max_payroll_idx ON payroll (MAX(salary)); "
> > so either the book was a waste of money, or this is a 7.2 specific
> > feature.
>
> Uh, MAX() is an aggregate, not really a function like the other
> functions.  It takes an entire column and returns one value, rather than
> normal functions that take a some values and return a single value.
>
> In summary, I don't think we support aggregates (MAX) in functional
> indexes.
>

So, to put it succinctly book=wrong;

--
Chris Field
Affinity Solutions Inc.

pgsql-hackers by date:

Previous
From: Doug McNaught
Date:
Subject: Re: Upgrading to 7.2
Next
From: Marc Lavergne
Date:
Subject: Re: Upgrading to 7.2