Re: index on function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: You Lun <youlun2000(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: index on function
Date: 2003-05-23 13:23:32
Message-ID: 15657.1053696212@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

You Lun <youlun2000(at)yahoo(dot)com> writes:
> I want to create a function index like this:
> create index idx on R (f(R))
> But it doesn't pass PostgreSQL's grammar.

Right now you have no alternative but to spell out all the columns of R.

There has been talk of fixing this by replacing functional indexes with
indexes over general expressions, but I dunno how soon it will happen.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-05-23 13:41:40 Re: problem inserting tuples with access methods
Previous Message Peter Galbavy 2003-05-23 13:20:30 Re: $PostgreSQL$ for revision info