Re: Out of Memory errors are frustrating as heck!

Поиск
Список
Период
Сортировка
Искать
От
Justin Pryzby
Тема
Re: Out of Memory errors are frustrating as heck!
Дата
Msg-id
20190420214541.GD4323@telsasoft.com
Ответ на
Список
Дерево обсуждения
Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Peter <pmc@citylink.dinoex.sub.org>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Jeremy Schneider <schneider@ardentperf.com>
Re: Out of Memory errors are frustrating as heck! Gaetano Mendola <mendola@gmail.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Justin Pryzby <pryzby@telsasoft.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Gaetano Mendola <mendola@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Gunther <raj@gusw.net>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Out of Memory errors are frustrating as heck! Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Out of Memory errors are frustrating as heck! Jean-David Beyer <jeandavid8@verizon.net>
Re: Out of Memory errors are frustrating as heck! Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Out of Memory errors are frustrating as heck! Merlin Moncure <mmoncure@gmail.com>
Re: Out of Memory errors are frustrating as heck! Merlin Moncure <mmoncure@gmail.com>
Re: Out of Memory errors are frustrating as heck! Jeff Janes <jeff.janes@gmail.com>
Re: Out of Memory errors are frustrating as heck! Tomas Vondra <tomas.vondra@2ndquadrant.com>
On Sat, Apr 20, 2019 at 04:46:03PM -0400, Tom Lane wrote:
> Tomas Vondra  writes:
> > I think it's really a matter of underestimate, which convinces the planner
> > to hash the larger table. In this case, the table is 42GB, so it's
> > possible it actually works as expected. With work_mem = 4MB I've seen 32k
> > batches, and that's not that far off, I'd day. Maybe there are more common
> > values, but it does not seem like a very contrived data set.
> 
> Maybe we just need to account for the per-batch buffers while estimating
> the amount of memory used during planning.  That would force this case
> into a mergejoin instead, given that work_mem is set so small.

Do you mean by adding disable_cost if work_mem is so small that it's estimated
to be exceeded ?

Justin


В списке pgsql-performance по дате отправления
От: Tomas Vondra
Дата:
От: Tom Lane
Дата:
FAQ