Re: [HACKERS] Parallel Bitmap scans a bit broken - Mailing list pgsql-hackers

From Dilip Kumar
Subject Re: [HACKERS] Parallel Bitmap scans a bit broken
Date
Msg-id CAFiTN-sqFOrxNJgCc_KOKam2nqbza9PVOh2do566MxfBWkeiHw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Parallel Bitmap scans a bit broken  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] Parallel Bitmap scans a bit broken  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Mar 16, 2017 at 8:42 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Thanks for confirming.  Some review comments on v2:
>
> +    if (istate->pagetable)
fixed
>
> Please compare explicitly to InvalidDsaPointer.
>
> +    if (iterator->ptbase)
> +        ptbase = iterator->ptbase->ptentry;
> +    if (iterator->ptpages)
> +        idxpages = iterator->ptpages->index;
> +    if (iterator->ptchunks)
> +        idxchunks = iterator->ptchunks->index;
>
> Similarly.
fixed

Also fixed at
+ if (ptbase)
+   pg_atomic_init_u32(&ptbase->refcount, 0);

>
> Dilip, please also provide a proposed commit message describing what
> this is fixing.  Is it just the TBM_EMPTY case, or is there anything
> else?

Okay, I have added the commit message in the patch.


-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: [HACKERS] PinBuffer() no longer makes use of strategy
Next
From: Dilip Kumar
Date:
Subject: Re: [HACKERS] Parallel Bitmap scans a bit broken