How to create virtual indexes on postgres

From: Sreerama Manoj <manoj(dot)sreerama973(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How to create virtual indexes on postgres
Date: 2015-02-26 09:20:20
Message-ID: CA+go1QFfj1LxvXDp+-ET7w__mu=hnYFgrH5H5005XKYs4iWSOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
I use Postgres 9.4 database.Now,I am optimizing the queries by using
the results of "explain" and "explain analyze",Sometimes I am creating
Indexes to optimize them. But, I was not successful sometimes as even I
create Index to optimize them, the planner is not using them .

So my question was can we know whether the planner will use the index
before actually creating a real Index..or can we create "virtual" or
"Hypothetical" Index those can only be known to the planner and not the
user or Is there any alternative to do it..If present,share with me.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2015-02-26 09:21:53 Re: Transactions involving multiple postgres foreign servers
Previous Message Amit Langote 2015-02-26 09:09:22 Re: Partitioning WIP patch