On Wed, Nov 20, 2019 at 11:01 AM Masahiko Sawada <masahiko.saw...@2ndquadrant.com> wrote: > > I've attached the latest version patch set. The patch set includes all > discussed points regarding index AM options as well as shared cost > balance. Also I added some test cases used all types of index AM. >
I have reviewed the first patch and made a number of modifications that include adding/modifying comments, made some corrections and modifications in the documentation. You can find my changes in v33-0001-delta-amit.patch. See, if those look okay to you, if so, please include those in the next version of the patch. I am attaching both your version of patch and delta changes by me. One comment on v33-0002-Add-parallel-option-to-VACUUM-command: + /* Estimate size for shared information -- PARALLEL_VACUUM_KEY_SHARED */ + est_shared = MAXALIGN(add_size(SizeOfLVShared, BITMAPLEN (nindexes))); .. + shared->offset = add_size(SizeOfLVShared, BITMAPLEN(nindexes)); Here, don't you need to do MAXALIGN to set offset as we are computing it that way while estimating shared memory? If not, then probably, some comments are required to explain it. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com
v33-0001-Add-index-AM-field-and-callback-for-parallel-ind.patch
Description: Binary data
v33-0001-delta-amit.patch
Description: Binary data