GIN index

E427691

A GIN index (Generalized Inverted Index) is a PostgreSQL index type optimized for efficient querying of composite values such as arrays, JSON, and full-text search data.

All labels observed (1)

Label Occurrences
GIN index canonical 1

How this entity was disambiguated

Statements (50)

Predicate Object
instanceOf PostgreSQL index type
abbreviation GIN
benefit efficient containment queries
efficient full-text search queries
efficient membership tests
fast search for elements contained in a value
comparedTo GiST index
designedFor many-to-many relationships between keys and rows
exampleOperatorClass gin__int_ops
gin_btree_ops
gin_trgm_ops
gin_tsvector_ops
fastupdate uses pending list to buffer index changes
fullName Generalized Inverted Index
indexMethod inverted index
introducedIn PostgreSQL 8.2
linked to: PostgreSQL
maintenanceOperation REINDEX for rebuilding index
VACUUM to clean up pending list
optimizedFor JSON data
arrays
composite values
full-text search data
requires operator class
stores keys with posting lists of row locations
supports composite types
concurrent index creation
full-text search
hstore columns
indexing of JSON keys
indexing of JSON values
indexing of array elements
multicolumn indexes
partial indexes
range types
tsvector columns
user-defined operator classes
supportsOperator <@ (is contained by) for arrays
? (key existence) for JSONB
?& (all keys exist) for JSONB
?| (any key exists) for JSONB
@> (contains) for arrays
@@ (text search match) for tsvector
tradeOff larger index size compared to B-tree indexes
slower writes compared to B-tree indexes
tunableParameter fastupdate
gin_pending_list_limit
typicalUseCase full-text search on large text columns
searching within JSONB documents
tag or label search stored as arrays
usedIn PostgreSQL

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

BRIN contrastedWith GIN index