Re: BUG #2260: PGCrypto Memory Problem

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: BUG #2260: PGCrypto Memory Problem
Дата
Msg-id 20060215182043.GA84192@winnie.fuhr.org
обсуждение исходный текст
Ответ на BUG #2260: PGCrypto Memory Problem  ("Daniel Blaisdell" <lunk.djedi@gmail.com>)
Ответы Re: BUG #2260: PGCrypto Memory Problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Tue, Feb 14, 2006 at 05:28:25PM +0000, Daniel Blaisdell wrote:
> Problem Query:
> select * from table where md5password = crypt('password',salt)
>
> The first time this query is run, I see the postgres process bump up to 8MB
> of ram from where it initializes.
>
> On subsequent issues of the same query the postgres's process memory
> footprint grows each time.

I can reproduce this in 8.1.3 on FreeBSD 6.0 and Solaris 9.  Here's
a standalone test case:

SELECT crypt(x::text, '$1$salt') FROM generate_series(1, 500) AS g(x);

Running the query with 'salt' instead of '$1$salt' doesn't exhibit
a memory leak, not even with more iterations from generate_series.

--
Michael Fuhr

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2261: ILIKE seems to be buggy on koi8 input
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2260: PGCrypto Memory Problem