We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent80afb62 commite9e441cCopy full SHA for e9e441c
contrib/bloom/blvacuum.c
@@ -108,15 +108,20 @@ blbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
108
Assert(itupPtr==BloomPageGetTuple(&state,page,
109
OffsetNumberNext(BloomPageGetMaxOffset(page))));
110
111
-if (BloomPageGetFreeSpace(&state,page)>state.sizeOfBloomTuple&&
+/*
112
+ * Add page to notFullPage list if we will not mark page as deleted and
113
+ * there is a free space on it
114
+ */
115
+if (BloomPageGetMaxOffset(page)==0&&
116
+BloomPageGetFreeSpace(&state,page)>state.sizeOfBloomTuple&&
117
countPage<BloomMetaBlockN)
118
notFullPage[countPage++]=blkno;
119
120
/* Did we delete something? */
121
if (itupPtr!=itup)
122
{
123
/* Is it empty page now? */
-if (itupPtr==BloomPageGetData(page))
124
+if (BloomPageGetMaxOffset(page)==0)
125
BloomPageSetDeleted(page);
126
/* Adjust pg_lower */
127
((PageHeader)page)->pd_lower= (Pointer)itupPtr-page;