Re: Vacuum, Freeze and Analyze: the big picture

Поиск
Список
Период
Сортировка
Искать
От
Peter Geoghegan
Тема
Re: Vacuum, Freeze and Analyze: the big picture
Дата
Msg-id
CAM3SWZSJPgewee_dTicq3PuZgrY+63SbbzATHTr+rdg4ykOp-w@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Vacuum, Freeze and Analyze: the big picture Josh Berkus <josh@agliodbs.com>
Re: Vacuum, Freeze and Analyze: the big picture Andres Freund <andres@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Simon Riggs <simon@2ndQuadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Robert Haas <robertmhaas@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Craig Ringer <craig@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Kevin Grittner <kgrittn@ymail.com>
Re: Vacuum, Freeze and Analyze: the big picture Jeff Janes <jeff.janes@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Peter Geoghegan <pg@heroku.com>
Re: Vacuum, Freeze and Analyze: the big picture Craig Ringer <craig@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Jim Nasby <jim@nasby.net>
Re: Vacuum, Freeze and Analyze: the big picture Peter Geoghegan <pg@heroku.com>
Re: Vacuum, Freeze and Analyze: the big picture Jeff Janes <jeff.janes@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Jeff Janes <jeff.janes@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Craig Ringer <craig@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Kevin Grittner <kgrittn@ymail.com>
Vacuum, Freeze and Analyze: the big picture Jeff Janes <jeff.janes@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Andres Freund <andres@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Jeff Janes <jeff.janes@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Kevin Grittner <kgrittn@ymail.com>
Re: Vacuum, Freeze and Analyze: the big picture Andres Freund <andres@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Robert Haas <robertmhaas@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Ants Aasma <ants@cybertec.at>
Re: Vacuum, Freeze and Analyze: the big picture Martijn van Oosterhout <kleptog@svana.org>
Re: Vacuum, Freeze and Analyze: the big picture Robert Haas <robertmhaas@gmail.com>
Re: Vacuum, Freeze and Analyze: the big picture Kevin Grittner <kgrittn@ymail.com>
Re: Vacuum, Freeze and Analyze: the big picture Peter Geoghegan <pg@heroku.com>
Re: Vacuum, Freeze and Analyze: the big picture Andres Freund <andres@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Thom Brown <thom@linux.com>
Re: Vacuum, Freeze and Analyze: the big picture Andres Freund <andres@2ndquadrant.com>
Re: Vacuum, Freeze and Analyze: the big picture Greg Stark <stark@mit.edu>
On Mon, Jun 3, 2013 at 5:03 AM, Craig Ringer  wrote:
> I've seen cases on Stack Overflow and elsewhere in which disk merge
> sorts perform vastly better than in-memory quicksort, so the user
> benefited from greatly *lowering* work_mem.

I've heard of that happening on Oracle, when the external sort is
capable of taking advantage of I/O parallelism, but I have a pretty
hard time believing that it could happen with Postgres under any
circumstances. Maybe if someone was extraordinarily unlucky and
happened to hit quicksort's O(n ^ 2) worst case it could happen, but
we take various measures that make that very unlikely. It might also
have something to do with our "check for pre-sorted input" [1], but
I'm still skeptical.

[1] http://www.postgresql.org/message-id/CAEYLb_Xn4-6f1ofsf2qduf24dDCVHbQidt7JPpdL_RiT1zBJ6A@mail.gmail.com

-- 
Peter Geoghegan


В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Robert Haas
Дата:
FAQ