From 3bc1b89d447ab2e302d64a27995b852c5c755ac3 Mon Sep 17 00:00:00 2001
From: Robert Haas <rhaas@postgresql.org>
Date: Wed, 16 Nov 2016 11:35:14 -0500
Subject: [PATCH 1/3] Remove uninformative DEBUG messages.

These messages appear very frequently at DEBUG3 or higher, and they
aren't useful.  So get rid of them.
---
 src/backend/tcop/postgres.c | 6 ------
 src/backend/tcop/pquery.c   | 4 ----
 2 files changed, 10 deletions(-)

diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 3d9319d..cc84754 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2427,8 +2427,6 @@ start_xact_command(void)
 {
 	if (!xact_started)
 	{
-		ereport(DEBUG3,
-				(errmsg_internal("StartTransactionCommand")));
 		StartTransactionCommand();
 
 		/* Set statement timeout running, if any */
@@ -2450,10 +2448,6 @@ finish_xact_command(void)
 		/* Cancel any active statement timeout before committing */
 		disable_timeout(STATEMENT_TIMEOUT, false);
 
-		/* Now commit the command */
-		ereport(DEBUG3,
-				(errmsg_internal("CommitTransactionCommand")));
-
 		CommitTransactionCommand();
 
 #ifdef MEMORY_CONTEXT_CHECKING
diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c
index 92d07fc..5443d0b 100644
--- a/src/backend/tcop/pquery.c
+++ b/src/backend/tcop/pquery.c
@@ -167,8 +167,6 @@ ProcessQuery(PlannedStmt *plan,
 {
 	QueryDesc  *queryDesc;
 
-	elog(DEBUG3, "ProcessQuery");
-
 	/*
 	 * Create the QueryDesc object
 	 */
@@ -1151,8 +1149,6 @@ PortalRunUtility(Portal portal, Node *utilityStmt,
 {
 	Snapshot	snapshot;
 
-	elog(DEBUG3, "ProcessUtility");
-
 	/*
 	 * Set snapshot if utility stmt needs one.  Most reliable way to do this
 	 * seems to be to enumerate those that do not need one; this is a short
-- 
2.5.4 (Apple Git-61)

