diff options
author | Pavan Deolasee | 2015-12-07 10:18:33 +0000 |
---|---|---|
committer | Pavan Deolasee | 2015-12-07 10:18:33 +0000 |
commit | 5f5ef0503fca3d0dbc04f0c5adbbb3448dd57821 (patch) | |
tree | bc3c814cbcf8ea536a5de110469ab17e9750285b | |
parent | eefab38f1147d9b30ef4e0f06d039ac195d6736d (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.c | 11 |
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; |