NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Introduction to PostgreSQL Indexes (dlt.github.io)
jihadjihad 2 minutes ago [-]
The section on multi-column indexes mirrors how I was taught and how I’ve generally handled such indexes in the past. But is it still true for more recent PG versions? I had an index and query similar to the third example, and IIRC PG was able to use an index, though I believe it was a bitmap index scan.

I am also unsure of the specific perf tradeoffs between index scan types, but when I saw that happen in the EXPLAIN plan it was enough for me to call into question what had been hardcoded wisdom in my mind for quite some time.

Further essential reading is the classic Use the index, Luke [0] site, and the book is a great buy for the whole team.

0: https://use-the-index-luke.com/

cdiamand 7 minutes ago [-]
Linking to the postgresql docs since they are very well written and surprisingly enjoyable to read.

https://www.postgresql.org/docs/current/indexes-intro.html

turbocon 19 minutes ago [-]
This looks really awesome for Postgres

For general B Tree index resources this has been my got to site for years https://use-the-index-luke.com/

joaomsa 1 hours ago [-]
Essential reading. More in-depth than an introduction, but without being overly impenetrable except to those dealing with the internals.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 14:01:34 GMT+0000 (Coordinated Universal Time) with Vercel.