Re: Out of memory on SELECT in 8.3.5
От
Matt Magoffin
Тема
Re: Out of memory on SELECT in 8.3.5
Дата
Msg-id
49266.192.168.1.106.1234209888.squirrel@msqr.us
Ответ на
Re: Out of memory on SELECT in 8.3.5 (John R Pierce)
Список
Дерево обсуждения
Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 Tom Lane <tgl@sss.pgh.pa.us>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 John R Pierce <pierce@hogranch.com>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <matt@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Scott Marlowe <scott.marlowe@gmail.com>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
Re: Out of memory on SELECT in 8.3.5 Stephen Frost <sfrost@snowman.net>
Re: Out of memory on SELECT in 8.3.5 "Matt Magoffin" <postgresql.org@msqr.us>
> with 100 concurrent postgres connections, if they all did something > requiring large amounts of work_mem, you could allocate 100 * 125MB (I > believe thats what you said it was set to?) which is like 12GB :-O > > in fact a single query thats doing multiple sorts of large datasets for > a messy join (or other similar activity) can involve several instances > of workmem. multiply that by 100 queries, and ouch. > > have you considered using a connection pool to reduce the postgres > process count? We do have a connection pool here, and as I mentioned about a quarter of these are Slony-controlled processes for replication. Most connections are not doing complex queries of this sort, in fact when this query runs it is the only query running, most connections are idle (kept open by a connection pool) or performing short insert/update operations. But I see your point about the large work_mem, it was set that high to help speed up big queries such as this one. -- m@
В списке pgsql-general по дате отправления