Re: Parallel Bitmap scans a bit broken
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Emre Hasegeli <emre@hasegeli.com>,
David Rowley <david.rowley@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-03-16T17:50:15Z
Lists: pgsql-hackers
Attachments
- fix_tbm_empty_v3.patch (application/octet-stream) patch v3
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
Commits
-
Avoid access to uninitialized memory in shared tidbitmap iteration.
- 80824ddda301 10.0 landed
-
Bump catversion for MACADDR8
- c5832346625a 10.0 cited
-
Fix bug in parallel tidbitmap iteration.
- 6a468c343b31 10.0 landed