Re: where does postgres keep the query result until it is returned?

Поиск
Список
Период
Сортировка
Искать
От
Scott Ribe
Тема
Re: where does postgres keep the query result until it is returned?
Дата
Msg-id
409DB836-C1B1-429C-8F24-A9E726F25922@killerbytes.com
Ответ на
Список
Дерево обсуждения
where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Sam Mason <sam@samason.me.uk>
Re: where does postgres keep the query result until it is returned? Sam Mason <sam@samason.me.uk>
Re: where does postgres keep the query result until it is returned? Tom Lane <tgl@sss.pgh.pa.us>
Re: where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Sam Mason <sam@samason.me.uk>
Re: where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: where does postgres keep the query result until it is returned? Tom Lane <tgl@sss.pgh.pa.us>
Re: where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Scott Ribe <scott_ribe@killerbytes.com>
Re: where does postgres keep the query result until it is returned? Craig Ringer <craig@postnewspapers.com.au>
Re: where does postgres keep the query result until it is returned? Merlin Moncure <mmoncure@gmail.com>
Re: where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Willy-Bas Loos <willybas@gmail.com>
Re: where does postgres keep the query result until it is returned? Merlin Moncure <mmoncure@gmail.com>
Re: where does postgres keep the query result until it is returned? Sandeep Srinivasa <sss@clearsenses.com>
On Sep 20, 2010, at 8:06 AM, Willy-Bas Loos wrote:

> Sheesh..
> 
> - why?

Because you start with 4GB of address space, immediately give up maybe 0.5GB for mapping executable code (all the system libraries that get linked), plus a good chunk for the main thread stack, plus library data structures. End result is you likely have about 2GB (or less) address space available for heap allocations. And this of course will get used and at least somewhat fragmented as your program runs. So it is difficult to find a 1GB contiguous block for allocation.

> - how about 64 bit?

Well, you start with 17,179,869,184GB of address space, so of course it's different. It tends to be pretty easy to find a contiguous 1GB block in an address space that size.

> - should this be documented?

Doubtful. It has to do with very well known limits of 32-bit programs, applies to any use for a 1GB block regardless of where it comes from (network or disk), really has nothing to do with postgres, and the actual size at which you'll start to have problems with vary a good bit depending on: OS, libraries you link to, memory management library you use, memory management techniques you use, and to a very great extent your specific app and exactly what it does.

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




В списке pgsql-general по дате отправления
От: Colin 't Hart
Дата:
От: John Cheng
Дата:
Сообщение: Binary Replication and Slony
FAQ