Revert "Add temporary debug logging, in 9.4 branch only."
authorTom Lane
Wed, 18 Apr 2018 15:57:37 +0000 (11:57 -0400)
committerTom Lane
Wed, 18 Apr 2018 15:57:37 +0000 (11:57 -0400)
This reverts commit e55380f3b60108d402f64131fe655b0e5ccc1f31.
It's served its purpose.

src/backend/commands/indexcmds.c
src/backend/utils/time/snapmgr.c
src/include/utils/snapmgr.h

index e8b9d1a4dd8b07b97f42a4bc2b11b4bf66cc825a..05afcb0088d66f9889e0f1294974b0d0d747919e 100644 (file)
@@ -758,8 +758,6 @@ 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
@@ -772,13 +770,9 @@ 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
index 2a3d915e1f9beed43154c60852da6f862a7e06ec..331c91044f2fe816a5f969722ce80060da755737 100644 (file)
@@ -1401,17 +1401,3 @@ HistoricSnapshotGetTupleCids(void)
    Assert(HistoricSnapshotActive());
    return tuplecid_data;
 }
-
-void
-PrintSnapMgrStatus(const char *context)
-{
-   int         asdepth = 0;
-   ActiveSnapshotElt *active;
-
-   for (active = ActiveSnapshot; active != NULL; active = active->as_next)
-       asdepth++;
-
-   elog(LOG, "%s: %d reg snaps, %d active snaps, cat snap %p, xmin %u",
-        context, RegisteredSnapshots, asdepth,
-        CatalogSnapshot, MyPgXact->xmin);
-}
index 71452d9afe11ba34ea2fdcc0e7df32e242a64010..c6aa3619508894823358f684329d1dc266f125ff 100644 (file)
@@ -65,6 +65,4 @@ extern void SetupHistoricSnapshot(Snapshot snapshot_now, struct HTAB *tuplecids)
 extern void TeardownHistoricSnapshot(bool is_error);
 extern bool HistoricSnapshotActive(void);
 
-extern void PrintSnapMgrStatus(const char *context);
-
 #endif   /* SNAPMGR_H */