Re: PostgreSQL Process memory architecture

Поиск
Список
Период
Сортировка
От Ben Zeev, Lior
Тема Re: PostgreSQL Process memory architecture
Дата
Msg-id 59E5FDBE8F3B144F8FCF35819B39DD4C162431D0@G6W2498.americas.hpqcorp.net
обсуждение исходный текст
Ответ на Re: PostgreSQL Process memory architecture  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: PostgreSQL Process memory architecture
Список pgsql-hackers
Hi Stephen,

Each query is running in a separate transaction.

Why does portioning is done better rather than using partial index?

Thanks,
Lior


-----Original Message-----
From: Stephen Frost [mailto:sfrost@snowman.net]
Sent: Monday, May 27, 2013 16:15
To: Ben Zeev, Lior
Cc: Atri Sharma; Pg Hackers
Subject: Re: [HACKERS] PostgreSQL Process memory architecture

Lior,

* Ben Zeev, Lior (lior.ben-zeev@hp.com) wrote:
> Yes, The memory utilization per PostgreSQL backend process is when
> running queries against this tables, For example: select * from test where num=2 and c2='abc'
> When It start it doesn't consume to much memory, But as it execute
> against more and more indexes the memory consumption grows

Are these all running in one transaction, or is this usage growth across multiple transactions?  If this is all in the
sametransaction, what happens when you do these queries in independent transactions? 

> This tables should contain data, But I truncate the data of the tables
> because I wanted to make sure that the memory consumption is not
> relate to the data inside the table, but rather to the structure of
> the tables

If you actually have sufficient data to make having 500 indexes on a table sensible, it strikes me that this memory
utilizationmay not be the biggest issue you run into.  If you're looking for partitioning, that's much better done, in
PGat least, by using inheiritance and constraint exclusion. 
Thanks,
    Stephen



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Planning incompatibilities for Postgres 10.0
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: PostgreSQL Process memory architecture