News for hackers. Stuff that matters.
Re:At 22 years old, Postgres might just be the most advanced... by polskibus on Wednesday December 05, 2018 @01:59PM (#18611300)
Oracle like many other databases has clustered indexes. PostgreSQL does not and it can have big performance implications.
Re:At 22 years old, Postgres might just be the most advanced... by SigmundA on Wednesday December 05, 2018 @06:01PM (#18613634)
Yes they really should look at adding index organized tables, aka real clustered indexes.

Better space usage and performance for that single index since the table is the index, slightly worse performance for non clustered indexes due to a double index traversal.

Re:At 22 years old, Postgres might just be the most advanced... by mmaurizi on Wednesday December 05, 2018 @02:07PM (#18611378)
Re:At 22 years old, Postgres might just be the most advanced... by polskibus on Wednesday December 05, 2018 @02:13PM (#18611435)
That's not how a real clustered primary key works, because "the changes are not clustered.".
Re:At 22 years old, Postgres might just be the most advanced... by asah on Wednesday December 05, 2018 @02:46PM (#18611759)
can confirm.

That said, one can often capture much of the performance benefit with Postgres indexes - basically, instead of trying to tightly-pack the base tables, copy the data into indexes which are tightly packed exactly as you need. Put another way, Postgres indexes are synchronously updated materialized views - and yes, the Postgres planner/optimizer will automatically answer queries from an index if it's faster and all the columns are in there.

I esp recommend reading about function and expression indexes, as well as the (new) covering indexes.

http://blog.scoutapp.com/articles/2016/05/31/3-postgresql-in... https://www.endpoint.com/blog/2013/06/10/postgresql-function... https://paquier.xyz/postgresql-2/postgres-11-covering-indexe...

Re:At 22 years old, Postgres might just be the most advanced... by polskibus on Wednesday December 05, 2018 @03:03PM (#18611895)
Surely the writes will be much slower if you have to copy the data to the index
Re:At 22 years old, Postgres might just be the most advanced... by Tostino on Wednesday December 05, 2018 @10:15PM (#18615054)
What do you think a (non clustered) index is? Of course it slows down writes.
Re:At 22 years old, Postgres might just be the most advanced... by polskibus on Thursday December 06, 2018 @01:25AM (#18615865)
It was a reply to proposed workaround, to show that it still has significant drawbacks