Remove some debugging code.
authorRobert Haas <rhaas@postgresql.org>
Thu, 29 Sep 2011 00:00:10 +0000 (20:00 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 14 Oct 2011 18:38:15 +0000 (14:38 -0400)
src/backend/storage/ipc/snaparray.c

index 582d2b7e6d447758e127cf02ad8447cbef7ece68..a5c81982250ac64b20087dcdc9bef2333bf391c7 100644 (file)
@@ -452,7 +452,6 @@ SnapArrayRemoveRunningXids(TransactionId xid, int nchildren,
 
                        certainly_removed_xids = num_removed_xids - high;
                }
-               elog(LOG, "[snaparray] xmax=%u, new_xmax=%u, num_running_xids=%u, xids_added=%u, certainly_removed_xids=%u", xmax, new_xmax, num_running_xids, xids_added, certainly_removed_xids);
 
                /*
                 * Allocate space for new snapshot.
@@ -1086,25 +1085,6 @@ SnapArrayUpdateCache(bool have_lock)
                        need_sort = true;
        }
 
-       {
-               uint32 k;
-               StringInfoData  buf;
-               initStringInfo(&buf);
-               appendStringInfo(&buf,
-                       "xmax: %lu, highest_removed_subxid: %lu, %u xids: [",
-                       (unsigned long) xmax, (unsigned long) highest_removed_subxid,
-                       (unsigned) num_running_xids);
-               for (k = 0; k < num_running_xids; ++k)
-                       appendStringInfo(&buf, k ? " %lu" : "%lu",
-                                                               (unsigned long) running_xids[k]);
-               appendStringInfo(&buf, "]; %u removed xids: [", num_removed_xids);
-               for (k = 0; k < num_removed_xids; ++k)
-                       appendStringInfo(&buf, k ? " %lu" : "%lu",
-                                                               (unsigned long) removed_xids[k]);
-               appendStringInfo(&buf, "] new_xmax=%lu", (unsigned long) new_xmax);
-               elog(LOG, "[snaparray] %s", buf.data);
-       }
-
        /*
         * Sort the removed XIDs (unless they are already in order).
         *