Обсуждение: 7.0.3 postmaster memory leak with aborted transactions

Поиск
Список
Период
Сортировка

7.0.3 postmaster memory leak with aborted transactions

От
Richard Ellis
Дата:
Test case:

create table test (data text unique);

Outside of psql, run this command (This is for bash):

while true ; do echo "begin work; insert into test (data) values ('This
is a test string.'); commit work;" ; done | psql

Watch the resident set size of the postmaster that the psql is connected
to as the while loop pumps data into psql.  As transactions are aborted,
the RSS of the postmaster continues to grow.  Looks like postmaster is
leaking memory somewhere.

Postgresql 7.0.3, compiled for Linux/glibc2 with gcc 2.95.2.

--
Microsoft is not the answer.            Boycott Microsoft Home page
Microsoft is the question.              http://www0.vcnet.com/bms
No is the answer.

Microsoft: Bringing you ten-year old technology, tomorrow, maybe.

Re: 7.0.3 postmaster memory leak with aborted transactions

От
Tom Lane
Дата:
Richard Ellis <rellis@erols.com> writes:
> Watch the resident set size of the postmaster that the psql is connected
> to as the while loop pumps data into psql.  As transactions are aborted,
> the RSS of the postmaster continues to grow.  Looks like postmaster is
> leaking memory somewhere.

Seems to be fixed in 7.1.

            regards, tom lane