Hypothetical Indexes - PostgreSQL extension - PGCON 2010

Started by Ana Carolina Brito de Almeidaabout 15 years ago8 messages

Hackers,

We would like to inform you all that our extension to PostgreSQL, that
includes hypothetical indexes (and soon index self-tuning), is
available through a sourgeforge project.
This was suggested at PgCon 2010 and we hope some of you may find it
useful, contribute and give us your feedback.

Link to project:
http://sourceforge.net/projects/hypotheticalind/

Thanks,
Sergio Lifschitz
Ana Carolina Almeida

#2Josh Berkus
josh@agliodbs.com
In reply to: Ana Carolina Brito de Almeida (#1)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

Ana,

We would like to inform you all that our extension to PostgreSQL, that includes hypothetical indexes (and soon index self-tuning), is available through a sourgeforge project.
This was suggested at PgCon 2010 and we hope some of you may find it useful, contribute and give us your feedback.

Great to see this being available finally!

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

#3Jeroen Vermeulen
jtv@xs4all.nl
In reply to: Ana Carolina Brito de Almeida (#1)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

On 2010-12-02 00:48, Ana Carolina Brito de Almeida wrote:

We would like to inform you all that our extension to PostgreSQL, that includes hypothetical indexes (and soon index self-tuning), is available through a sourgeforge project.
This was suggested at PgCon 2010 and we hope some of you may find it useful, contribute and give us your feedback.

Looking at the sourceforge page, I'm left with one burning question:
what are they for?

I can see what a hypothetical index is, but neither the project pages
nor the README in the tarball say why I might want one. I'd be quite
interested to know that.

Jeroen

#4Richard Huxton
dev@archonet.com
In reply to: Jeroen Vermeulen (#3)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

On 03/12/10 08:14, Jeroen Vermeulen wrote:

On 2010-12-02 00:48, Ana Carolina Brito de Almeida wrote:

We would like to inform you all that our extension to PostgreSQL, that
includes hypothetical indexes (and soon index self-tuning), is
available through a sourgeforge project.

Looking at the sourceforge page, I'm left with one burning question:
what are they for?

I believe they're for performance testing. Add hypothetical index (takes
very little time). Check estimated costs with EXPLAIN. If good, add real
index (takes lots of time).

Of course, they're also good for indexing hypothetical data ;-)

--
Richard Huxton
Archonet Ltd

#5Sergio Lifschitz
sergio@inf.puc-rio.br
In reply to: Richard Huxton (#4)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

Indeed, hypothetical indexes are good to check potentially good
configurations without harming the whole system with actual index
creation. Please observer that we've added an "explain hypothetical"
command, that will include plans considering hypothetical indexes! We'll
try to add a simple case study that would help those wondering about
this project.

Sergio

Show quoted text

On 3/12/2010 08:06, Richard Huxton wrote:

On 03/12/10 08:14, Jeroen Vermeulen wrote:

On 2010-12-02 00:48, Ana Carolina Brito de Almeida wrote:

We would like to inform you all that our extension to PostgreSQL, that
includes hypothetical indexes (and soon index self-tuning), is
available through a sourgeforge project.

Looking at the sourceforge page, I'm left with one burning question:
what are they for?

I believe they're for performance testing. Add hypothetical index
(takes very little time). Check estimated costs with EXPLAIN. If good,
add real index (takes lots of time).

Of course, they're also good for indexing hypothetical data ;-)

#6Jeroen Vermeulen
jtv@xs4all.nl
In reply to: Sergio Lifschitz (#5)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

On 2010-12-03 19:44, Sergio Lifschitz wrote:

Indeed, hypothetical indexes are good to check potentially good
configurations without harming the whole system with actual index
creation. Please observer that we've added an "explain hypothetical"
command, that will include plans considering hypothetical indexes! We'll
try to add a simple case study that would help those wondering about
this project.

That sounds very useful indeed!

Jeroen

In reply to: Jeroen Vermeulen (#6)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

Jeroen,

We add a simple case study (sourceforge page):
http://sourceforge.net/projects/hypotheticalind/files/TUTORIAL_8_4.pdf/download

Although this tutorial is for version 8.4, it also applies to other
versions.

Att,
Ana Carolina

2010/12/3 Jeroen Vermeulen <jtv@xs4all.nl>

Show quoted text

On 2010-12-03 19:44, Sergio Lifschitz wrote:

Indeed, hypothetical indexes are good to check potentially good
configurations without harming the whole system with actual index
creation. Please observer that we've added an "explain hypothetical"
command, that will include plans considering hypothetical indexes! We'll
try to add a simple case study that would help those wondering about
this project.

That sounds very useful indeed!

Jeroen

#8Jeroen Vermeulen
jtv@xs4all.nl
In reply to: Ana Carolina Brito de Almeida (#7)
Re: Hypothetical Indexes - PostgreSQL extension - PGCON 2010

On 2010-12-03 20:49, Ana Carolina Brito de Almeida wrote:

We add a simple case study (sourceforge page):
http://sourceforge.net/projects/hypotheticalind/files/TUTORIAL_8_4.pdf/download

Great, thanks!

I'll try to write a bit more about it later:

http://pqxx.org/development/libpqxx/wiki/HypotheticalIndexes

Jeroen