Skip to content
masterclass Buddy

PostgreSQL · Concept

GIN index

A GIN index searches for elements inside composite values, such as array members or document terms. It stores each key once and maps it to rows containing that key.

Last updated

Since
9.1

Syntax

CREATE INDEX index_name ON table_name USING GIN (column_name);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Generalized Inverted Index
  • posting list
  • posting tree
  • fastupdate
  • gin_pending_list_limit
  • gin_clean_pending_list
  • extractQuery
  • comparePartial

Source: PostgreSQL: Documentation: 18: 65.4. GIN Indexes. Checked 2026-11-03.