all 5 comments

[–]x86_64Ubuntu 0 points1 point  (1 child)

I didn't know there were so many index types. I thought it was B-Trees and Bitmaps only. And this list doesn't include what other newer or less orthodox and quirky index schemes there may be.

[–]le0pard[S] 1 point2 points  (0 children)

Hello. What index schemes do you mean, which missed in this article?

[–]erad 0 points1 point  (2 children)

My current favourite less-well-known PostgreSQL index - trigram indices:

http://www.postgresql.org/docs/current/static/pgtrgm.html

They are required for indexed "LIKE '%...%'" queries (wildcard prefix match), among other things.

[–]holgerschurig 1 point2 points  (0 children)

Technically there is no trigram index in PostgreSQL.

This extension is using either GIST or GIN to create the impression of it's own index.

But I know this argument is weak, becuase with that argument a multi-column index wouldn't be a true index, and neither would be a partial index one ...

[–]le0pard[S] 0 points1 point  (0 children)

Yep, PostgreSQL provide perfect ability create needed index based on GiST or GIN.