Re: BUG #2260: PGCrypto Memory Problem

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Daniel Blaisdell" <lunk.djedi@gmail.com>
Cc: pgsql-bugs@postgresql.org
Date: 2006-02-15T18:21:48Z
Lists: pgsql-bugs
"Daniel Blaisdell" <lunk.djedi@gmail.com> writes:
> Table Setup:
> employeeid integer
> salt text
> md5password text

> Problem Query:
> select * from table where md5password = crypt('password',salt)

I tried this with dummy data and couldn't see any memory leak, using
Fedora Core 4 and CVS-tip postgres (but there've been no recent changes
in pgcrypto that would affect this).

I suspect you may have a memory leak in Gentoo's implementation of
crypt().  Another possible theory is that it's data-dependent, in which
case you need to show some sample data that triggers it.

			regards, tom lane