summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-12-07 10:18:33 +0000
committerPavan Deolasee2015-12-07 10:18:33 +0000
commit5f5ef0503fca3d0dbc04f0c5adbbb3448dd57821 (patch)
treebc3c814cbcf8ea536a5de110469ab17e9750285b
parenteefab38f1147d9b30ef4e0f06d039ac195d6736d (diff)
Cluster Monitor, which is an auxilliary process need not call InitPostgres and
thus should not start a transaction
-rw-r--r--src/backend/postmaster/clustermon.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/backend/postmaster/clustermon.c b/src/backend/postmaster/clustermon.c
index 75a68bd73c..40377b2abe 100644
--- a/src/backend/postmaster/clustermon.c
+++ b/src/backend/postmaster/clustermon.c
@@ -122,20 +122,9 @@ ClusterMonitorInit(void)
ALLOCSET_DEFAULT_MAXSIZE);
MemoryContextSwitchTo(ClusterMonitorMemCxt);
- InitPostgres(NULL, InvalidOid, NULL, InvalidOid, NULL);
-
SetProcessingMode(NormalProcessing);
/*
- * Start a dummy transaction so that we start computing OldestXmin
- * with the current latestCompletedXid, especially when this server is just
- * started and joining the cluster
- */
- StartTransactionCommand();
- (void) GetTopTransactionId();
- CommitTransactionCommand();
-
- /*
* Register this node with the GTM
*/
oldestXmin = InvalidGlobalTransactionId;