Re: Hashtable entry recycling algorithm in pg_stat_statements - Mailing list pgsql-hackers

From Alex Hunsaker
Subject Re: Hashtable entry recycling algorithm in pg_stat_statements
Date
Msg-id 34d269d40901021734g248cd705he01af48338787d0b@mail.gmail.com
Whole thread Raw
In response to Re: Hashtable entry recycling algorithm in pg_stat_statements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Jan 2, 2009 at 18:23, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Alex Hunsaker" <badalex@gmail.com> writes:
>> Its seems to me a linear list would make the "common" case where the
>> query is already in the list but we need to update the stats slow.
>
> No, the hashtable is still there for lookups.  The list would be a means
> of determining which hashtable entry to release when we're out of space.

Ahh ok well #1 seems easier to do and it seems like it would even be
faster than a clock and sweep...


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Significantly larger toast tables on 8.4?
Next
From: Tom Lane
Date:
Subject: Re: Significantly larger toast tables on 8.4?