diff options
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r-- | src/backend/commands/indexcmds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 05afcb0088d..e8b9d1a4dd8 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -758,6 +758,8 @@ DefineIndex(Oid relationId, */ validate_index(relationId, indexRelationId, snapshot); + PrintSnapMgrStatus("concurrent index build, before snapshot release"); + /* * Drop the reference snapshot. We must do this before waiting out other * snapshot holders, else we will deadlock against other processes also @@ -770,9 +772,13 @@ DefineIndex(Oid relationId, limitXmin = snapshot->xmin; PopActiveSnapshot(); + PrintSnapMgrStatus("concurrent index build, after PopActiveSnapshot"); UnregisterSnapshot(snapshot); + PrintSnapMgrStatus("concurrent index build, after UnregisterSnapshot"); InvalidateCatalogSnapshot(); + PrintSnapMgrStatus("concurrent index build, after InvalidateCatalogSnapshot"); + /* * The index is now valid in the sense that it contains all currently * interesting tuples. But since it might not contain tuples deleted just |