1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Add more temporary debug logging, in 9.4 branch only.

Last night's results were inconclusive, but after more staring at the
code I've thought of some more data to gather.

Discussion: https://postgr.es/m/6744.1523833660@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2018-04-17 11:26:37 -04:00
parent 608d1f9711
commit eef1a609ad
2 changed files with 4 additions and 2 deletions

View File

@ -773,6 +773,8 @@ DefineIndex(Oid relationId,
PopActiveSnapshot();
PrintSnapMgrStatus("concurrent index build, after PopActiveSnapshot");
elog(LOG, "concurrent index build: releasing snap %p with regd_count %d, active_count %d",
snapshot, snapshot->regd_count, snapshot->active_count);
UnregisterSnapshot(snapshot);
PrintSnapMgrStatus("concurrent index build, after UnregisterSnapshot");
InvalidateCatalogSnapshot();

View File

@ -1411,7 +1411,7 @@ PrintSnapMgrStatus(const char *context)
for (active = ActiveSnapshot; active != NULL; active = active->as_next)
asdepth++;
elog(LOG, "%s: %d reg snaps, %d active snaps, cat snap %p, xmin %u",
elog(LOG, "%s: %d reg snaps, %d active snaps, first snap %p, cat snap %p, xmin %u",
context, RegisteredSnapshots, asdepth,
CatalogSnapshot, MyPgXact->xmin);
FirstXactSnapshot, CatalogSnapshot, MyPgXact->xmin);
}