Re: create index on function - why?
От | Nick Fankhauser |
---|---|
Тема | Re: create index on function - why? |
Дата | |
Msg-id | NEBBLAAHGLEEPCGOBHDGIELJEFAA.nickf@ontko.com обсуждение исходный текст |
Ответ на | create index on function - why? (Wei Weng <wweng@kencast.com>) |
Список | pgsql-sql |
I don't know yet if it will help me. (I was doing empirical research when I ran into my problem.) My reasoning went like this: Since using a function in my "where" clause forces postgresql to do a table scan instead of using my index on the field, I was hoping to build an index on the function, which *would* get used. I'm pretty sure this will work, but I'll post my results to the list if I find that it doesn't work. -Nick > -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Wei Weng > Sent: Friday, February 15, 2002 11:26 AM > To: pgsql-sql@postgresql.org > Subject: [SQL] create index on function - why? > > > I can understand the rationale behind creating index on tables, it > speeds up the searching. > > But what is the rationale behind creating index on a function? how does > it help with the database performance? > > Thank you. > > -- > Wei Weng > Network Software Engineer > KenCast Inc. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
В списке pgsql-sql по дате отправления: