--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -9,6 +9,7 @@
 #include "storage/freespace.h"
 #include "storage/lmgr.h"
 #include "storage/lwlock.h"
+#include "storage/predicate.h"
 #include "utils/datum.h"
 #include "utils/memutils.h"
 #include "utils/rel.h"
@@ -852,6 +853,13 @@ hnswinsert(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid,
 	/* Insert tuple */
 	HnswInsertTuple(index, values, isnull, heap_tid);
 
+	/*
+	 * index_insert() checked for serializable conflicts before the element
+	 * was linked; a scan that started in between missed both the element and
+	 * the check. Repeat the check now that the element is reachable.
+	 */
+	CheckForSerializableConflictIn(index, NULL, InvalidBlockNumber);
+
 	/* Delete memory context */
 	MemoryContextSwitchTo(oldCtx);
 	MemoryContextDelete(insertCtx);
