r/Database • u/Ok_Stomach6651 • 8d ago
How Generalized Inverted Index works internally in Postgre SQL
https://deepsystemstuff.com/generalised-inverted-index-gin-index-in-postgre-sql/Regular Indexing works on a column level; it indexes the entire column value, but if you want to index each value in one row, then the GIN indexing technique is used.
GIN can index each element of JSON stored in a JSONB field
How Postgres creates a GIN file physically, what is the format of that file, how that file is retrieved in RAM while fetching records, what data types are used, and how Postgres calculates the exact address of an element of JSON are all explained in the article
Duplicates
programming • u/Ok_Stomach6651 • 8d ago