aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/hio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access/hio.h')
-rw-r--r--src/include/access/hio.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/include/access/hio.h b/src/include/access/hio.h
index 228433ee4a2..9bc563b7628 100644
--- a/src/include/access/hio.h
+++ b/src/include/access/hio.h
@@ -32,15 +32,22 @@ typedef struct BulkInsertStateData
Buffer current_buf; /* current insertion target page */
/*
- * State for bulk extensions. Further pages that were unused at the time
- * of the extension. They might be in use by the time we use them though,
- * so rechecks are needed.
+ * State for bulk extensions.
+ *
+ * last_free..next_free are further pages that were unused at the time of
+ * the last extension. They might be in use by the time we use them
+ * though, so rechecks are needed.
*
* XXX: Eventually these should probably live in RelationData instead,
* alongside targetblock.
+ *
+ * already_extended_by is the number of pages that this bulk inserted
+ * extended by. If we already extended by a significant number of pages,
+ * we can be more aggressive about extending going forward.
*/
BlockNumber next_free;
BlockNumber last_free;
+ uint32 already_extended_by;
} BulkInsertStateData;