Skip to content

Commit 92b503c

Browse files
committed
Revert "Add temporary debug logging, in 9.4 branch only."
This reverts commit e55380f. It's served its purpose.
1 parent 248c268 commit 92b503c

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

src/backend/commands/indexcmds.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,6 @@ DefineIndex(Oid relationId,
758758
*/
759759
validate_index(relationId, indexRelationId, snapshot);
760760

761-
PrintSnapMgrStatus("concurrent index build, before snapshot release");
762-
763761
/*
764762
* Drop the reference snapshot. We must do this before waiting out other
765763
* snapshot holders, else we will deadlock against other processes also
@@ -772,13 +770,9 @@ DefineIndex(Oid relationId,
772770
limitXmin = snapshot->xmin;
773771

774772
PopActiveSnapshot();
775-
PrintSnapMgrStatus("concurrent index build, after PopActiveSnapshot");
776773
UnregisterSnapshot(snapshot);
777-
PrintSnapMgrStatus("concurrent index build, after UnregisterSnapshot");
778774
InvalidateCatalogSnapshot();
779775

780-
PrintSnapMgrStatus("concurrent index build, after InvalidateCatalogSnapshot");
781-
782776
/*
783777
* The index is now valid in the sense that it contains all currently
784778
* interesting tuples. But since it might not contain tuples deleted just

src/backend/utils/time/snapmgr.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,17 +1401,3 @@ HistoricSnapshotGetTupleCids(void)
14011401
Assert(HistoricSnapshotActive());
14021402
return tuplecid_data;
14031403
}
1404-
1405-
void
1406-
PrintSnapMgrStatus(const char *context)
1407-
{
1408-
int asdepth = 0;
1409-
ActiveSnapshotElt *active;
1410-
1411-
for (active = ActiveSnapshot; active != NULL; active = active->as_next)
1412-
asdepth++;
1413-
1414-
elog(LOG, "%s: %d reg snaps, %d active snaps, cat snap %p, xmin %u",
1415-
context, RegisteredSnapshots, asdepth,
1416-
CatalogSnapshot, MyPgXact->xmin);
1417-
}

src/include/utils/snapmgr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,4 @@ extern void SetupHistoricSnapshot(Snapshot snapshot_now, struct HTAB *tuplecids)
6565
extern void TeardownHistoricSnapshot(bool is_error);
6666
extern bool HistoricSnapshotActive(void);
6767

68-
extern void PrintSnapMgrStatus(const char *context);
69-
7068
#endif /* SNAPMGR_H */

0 commit comments

Comments
 (0)