Re: init_sequence spill to hash table

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: init_sequence spill to hash table
Date: 2013-11-13 11:15:32
Message-ID: 52835F54.5020404@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 13.11.2013 11:55, David Rowley wrote:
> I thought I would post the patch early to see if this is actually wanted
> before I do too much more work on it.

Seems reasonable.

> My implementation maintains using the linear list for sequences up to a
> defined threshold (currently 32) then it moves everything over to a
> hashtable and free's off the list.

Did you check how it would perform if you just always used the hash
table? Or if you just have a single entry before you move to hash table,
ie. set the threshold to 2? That would be slightly simpler.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Luca Ferrari 2013-11-13 11:17:58 Re: [OT] why not keeping the original column name in catalog after a drop?
Previous Message Simon Riggs 2013-11-13 11:08:01 Re: Fast insertion indexes: why no developments