最佳答案
I am implementing a table that has a column with a data type of tsvector
and I am trying to understand what index would be better to use?
GIN or GiST?
In looking through the postgres documentation here I seem to get that:
GiST is faster to update and build the index and less accurate than gin.
GIN is slower to update and build the index but is more accurate.
OK, so why would anybody want a gist indexed field over gin? If gist could give you the wrong results? There must be some advantage (outside performance) on this.
Can anybody explain in layman's terms when I would want to use GIN vs. GiST?