Home icon

Index types supported in Amazon Aurora PostgreSQL and Amazon RDS for PostgreSQL using extensions (SP-GiST, Btree_Gin and Btree_Gist)

Database Blog



This article explores three PostgreSQL extension-based index types for Aurora PostgreSQL and RDS for PostgreSQL: SP-GiST, btree_gin, and btree_gist.

  • SP-GiST enables efficient spatial and prefix searches using partitioned search trees
  • SP-GiST reduced nearest-warehouse query from 6 seconds to 6ms with proper indexing
  • btree_gin creates unified GIN indexes combining array and scalar columns for read-heavy workloads
  • btree_gin eliminates BitmapAnd operations by evaluating all conditions in single index scan
  • btree_gist enables exclusion constraints and unified indexing for range-type and scalar columns
  • btree_gist improved range overlap query performance from 4,237ms to 793ms
  • GIN indexes have higher update overhead; GiST handles writes more efficiently
  • Exclusion constraints prevent overlapping values across multiple columns at database level
  • Test thoroughly on actual workloads before production deployment

These extensions address specific PostgreSQL indexing gaps, with SP-GiST for spatial data, btree_gin for read-heavy multi-column queries, and btree_gist for high-update workloads with range operations.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 3
2026
Index types supported in Amazon Aurora PostgreSQL and Amazon RDS for PostgreSQL using extensions (Bloom, pg_trgm, and pg_bigm)
Jul 17
2024
Index types supported in Amazon Aurora PostgreSQL and Amazon RDS for PostgreSQL (GIN, GiST, HASH, BRIN)
Jul 17
2024
Index types supported in Amazon Aurora PostgreSQL and Amazon RDS for PostgreSQL (B-tree)
Jun 17
2026
PostgreSQL 18 on Amazon Aurora and Amazon RDS: Performance enhancements

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.