Re: [HACKERS] README of hash index

2016-09-22 Thread Amit Kapila
On Fri, Sep 16, 2016 at 9:56 PM, Jeff Janes wrote: > On Fri, Sep 16, 2016 at 4:20 AM, Amit Kapila > wrote: >> >> Currently README of hash module contain algorithms written in below form. >> >> The insertion algorithm is rather similar: >> >> pin

Re: [HACKERS] README of hash index

2016-09-16 Thread Jeff Janes
On Fri, Sep 16, 2016 at 4:20 AM, Amit Kapila wrote: > Currently README of hash module contain algorithms written in below form. > > The insertion algorithm is rather similar: > > pin meta page and take buffer content lock in shared mode > loop: > compute bucket number

Re: [HACKERS] README of hash index

2016-09-16 Thread Kenneth Marshall
On Fri, Sep 16, 2016 at 04:50:53PM +0530, Amit Kapila wrote: > Currently README of hash module contain algorithms written in below form. > > The insertion algorithm is rather similar: > > pin meta page and take buffer content lock in shared mode > loop: > compute bucket number for target hash

[HACKERS] README of hash index

2016-09-16 Thread Amit Kapila
Currently README of hash module contain algorithms written in below form. The insertion algorithm is rather similar: pin meta page and take buffer content lock in shared mode loop: compute bucket number for target hash key release meta page buffer content lock if (correct bucket page is already