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:
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user