Re: [PERFORM] Index on a function and SELECT DISTINCT

2005-01-17 Thread Adrian Holovaty
Frank Wiles wrote: > Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > If I have this table, function and index in Postgres 7.3.6 ... > > > > """ > > CREATE TABLE news_stories ( > > id serial primary key NOT NULL, > > pub_date timest

[PERFORM] Index on a function and SELECT DISTINCT

2005-01-14 Thread Adrian Holovaty
If I have this table, function and index in Postgres 7.3.6 ... """ CREATE TABLE news_stories ( id serial primary key NOT NULL, pub_date timestamp with time zone NOT NULL, ... ) CREATE OR REPLACE FUNCTION get_year_trunc(timestamp with time zone) returns timestamp with time zone AS 'SEL