You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(28) |
Jun
(12) |
Jul
(11) |
Aug
(12) |
Sep
(5) |
Oct
(19) |
Nov
(14) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(18) |
Feb
(30) |
Mar
(115) |
Apr
(89) |
May
(50) |
Jun
(44) |
Jul
(22) |
Aug
(13) |
Sep
(11) |
Oct
(30) |
Nov
(28) |
Dec
(39) |
2012 |
Jan
(38) |
Feb
(18) |
Mar
(43) |
Apr
(91) |
May
(108) |
Jun
(46) |
Jul
(37) |
Aug
(44) |
Sep
(33) |
Oct
(29) |
Nov
(36) |
Dec
(15) |
2013 |
Jan
(35) |
Feb
(611) |
Mar
(5) |
Apr
(55) |
May
(30) |
Jun
(28) |
Jul
(458) |
Aug
(34) |
Sep
(9) |
Oct
(39) |
Nov
(22) |
Dec
(32) |
2014 |
Jan
(16) |
Feb
(16) |
Mar
(42) |
Apr
(179) |
May
(7) |
Jun
(6) |
Jul
(9) |
Aug
|
Sep
(4) |
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
(2) |
6
(2) |
7
|
8
(2) |
9
|
10
|
11
(1) |
12
(1) |
13
|
14
(2) |
15
(2) |
16
|
17
|
18
(1) |
19
|
20
|
21
(2) |
22
|
23
|
24
|
25
(1) |
26
|
27
(2) |
28
(2) |
29
(2) |
30
|
31
|
|
|
|
|
|
|
From: Michael P. <mic...@us...> - 2011-07-14 05:05:38
|
Project "Postgres-XC". The branch, master has been updated via fb2a3a864dee367f2cfe76a3a4fff5e02cb94fc1 (commit) from f0f4ae5fddf646b1a41dd4d512fccdf9c9587254 (commit) - Log ----------------------------------------------------------------- commit fb2a3a864dee367f2cfe76a3a4fff5e02cb94fc1 Author: Michael P <mic...@us...> Date: Thu Jul 14 13:56:00 2011 +0900 Performance issue with snapshot processing This commit solves an issue with snapshot processing in the case where cluster was used under multiple Coordinators. When a Coordinator/Coordinator connection was initialized, backend coordinator initialized a transaction to GTM that was never committed. A consequence of that was Snapshot xmin that remained to a constant value. Another consequence was recent global Xmin value set to a lower value, making autovacuum having absolutely no effects. This fix improves performance of the whole cluster by making autovacuum remove correctly old tuples for long-period runs. diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index a5ff753..1c684f5 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -203,7 +203,8 @@ GetNewTransactionId(bool isSubXact) increment_xid = false; elog(DEBUG1, "xid (%d) does not follow ShmemVariableCache->nextXid (%d)", xid, ShmemVariableCache->nextXid); - } else + } + else ShmemVariableCache->nextXid = xid; } else diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 2de6db4..5477df6 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -1234,7 +1234,8 @@ GetSnapshotData(Snapshot snapshot) if (GetSnapshotDataDataNode(snapshot)) return snapshot; /* else fallthrough */ - } else if (IS_PGXC_COORDINATOR && !IsConnFromCoord()) + } + else if (IS_PGXC_COORDINATOR && !IsConnFromCoord() && IsNormalProcessingMode()) { /* Snapshot has ever been received from remote Coordinator */ if (GetSnapshotDataCoordinator(snapshot)) diff --git a/src/gtm/main/gtm_txn.c b/src/gtm/main/gtm_txn.c index 7d13076..37b40a6 100644 --- a/src/gtm/main/gtm_txn.c +++ b/src/gtm/main/gtm_txn.c @@ -1363,7 +1363,7 @@ ProcessCommitTransactionCommand(Port *myport, StringInfo message) pq_getmsgend(message); oldContext = MemoryContextSwitchTo(TopMemoryContext); - + elog(LOG, "Committing transaction id %u", gxid); /* @@ -1455,6 +1455,8 @@ ProcessCommitPreparedTransactionCommand(Port *myport, StringInfo message) oldContext = MemoryContextSwitchTo(TopMemoryContext); + elog(LOG, "Committing: prepared id %u and commit prepared id %u ", gxid[0], gxid[1]); + /* * Commit the prepared transaction. */ ----------------------------------------------------------------------- Summary of changes: src/backend/access/transam/varsup.c | 3 ++- src/backend/storage/ipc/procarray.c | 3 ++- src/gtm/main/gtm_txn.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) hooks/post-receive -- Postgres-XC |
From: Michael P. <mic...@us...> - 2011-07-14 05:04:47
|
Project "Postgres-XC". The branch, REL0_9_5_STABLE has been updated via 694253102c045e2fc3d145d6718b81b5977004b3 (commit) from e992f2cb8debeca4123d3137e48949071342c5c0 (commit) - Log ----------------------------------------------------------------- commit 694253102c045e2fc3d145d6718b81b5977004b3 Author: Michael P <mic...@us...> Date: Thu Jul 14 13:56:00 2011 +0900 Performance issue with snapshot processing This commit solves an issue with snapshot processing in the case where cluster was used under multiple Coordinators. When a Coordinator/Coordinator connection was initialized, backend coordinator initialized a transaction to GTM that was never committed. A consequence of that was Snapshot xmin that remained to a constant value. Another consequence was recent global Xmin value set to a lower value, making autovacuum having absolutely no effects. This fix improves performance of the whole cluster by making autovacuum remove correctly old tuples for long-period runs. diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index 4bd8003..cdef834 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -203,7 +203,8 @@ GetNewTransactionId(bool isSubXact) increment_xid = false; elog(DEBUG1, "xid (%d) does not follow ShmemVariableCache->nextXid (%d)", xid, ShmemVariableCache->nextXid); - } else + } + else ShmemVariableCache->nextXid = xid; } else diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 741f658..d307b42 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -1227,7 +1227,8 @@ GetSnapshotData(Snapshot snapshot) if (GetSnapshotDataDataNode(snapshot)) return snapshot; /* else fallthrough */ - } else if (IS_PGXC_COORDINATOR && !IsConnFromCoord()) + } + else if (IS_PGXC_COORDINATOR && !IsConnFromCoord() && IsNormalProcessingMode()) { /* Snapshot has ever been received from remote Coordinator */ if (GetSnapshotDataCoordinator(snapshot)) diff --git a/src/gtm/main/gtm_txn.c b/src/gtm/main/gtm_txn.c index 7d13076..37b40a6 100644 --- a/src/gtm/main/gtm_txn.c +++ b/src/gtm/main/gtm_txn.c @@ -1363,7 +1363,7 @@ ProcessCommitTransactionCommand(Port *myport, StringInfo message) pq_getmsgend(message); oldContext = MemoryContextSwitchTo(TopMemoryContext); - + elog(LOG, "Committing transaction id %u", gxid); /* @@ -1455,6 +1455,8 @@ ProcessCommitPreparedTransactionCommand(Port *myport, StringInfo message) oldContext = MemoryContextSwitchTo(TopMemoryContext); + elog(LOG, "Committing: prepared id %u and commit prepared id %u ", gxid[0], gxid[1]); + /* * Commit the prepared transaction. */ ----------------------------------------------------------------------- Summary of changes: src/backend/access/transam/varsup.c | 3 ++- src/backend/storage/ipc/procarray.c | 3 ++- src/gtm/main/gtm_txn.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) hooks/post-receive -- Postgres-XC |