Re: Question: pg_class attributes and race conditions ? - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: Question: pg_class attributes and race conditions ?
Date
Msg-id 45FAD0CA.5090403@commandprompt.com
Whole thread Raw
In response to Re: Question: pg_class attributes and race conditions ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Question: pg_class attributes and race conditions ?
List pgsql-hackers
Tom Lane wrote:
> "Pavan Deolasee" <pavan.deolasee@enterprisedb.com> writes:
>> Any thoughts on the overall approach ?
> 
> Fragile and full of race conditions :-(.  I thought from the beginning
> that CREATE INDEX might be a showstopper for the whole HOT concept,
> and it's starting to look like that's the case.
> 
> I think what we need to get away from is the assumption that HOT-ness
> for one index is the same as HOT-ness for all.  What if we only applied
> HOT to primary-key indexes, so that there was certainly not more than
> one index per table that the property applies to?

Just to throw my two bits in here :). If we do that, how does that
effect the idea that most people in the web world use (id serial primary
key), even though that is not what they are searching on?

More specifically, does HOT help conditions where a composite comes into
play (session_id,last_active) ... which would be a more heavily updated
index than just the primary key.

Sincerely,

Joshua D. Drake


> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 


-- 
     === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997            http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: New Project: PostGIS application to Missing People
Next
From: Heikki Linnakangas
Date:
Subject: Re: Question: pg_class attributes and race conditions ?