Commit 9a48d22e authored by Neil Conway's avatar Neil Conway

Use LOG instead of DEBUG2 for logging invalid cancel requests. (That is,

cancel requests with an incorrect key, or with a non-existent PID). Per
recent discussion on -hackers.
parent 1e941153
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.543 2007/10/26 21:50:10 mha Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.544 2007/11/05 00:00:34 neilc Exp $
* *
* NOTES * NOTES
* *
...@@ -1709,16 +1709,16 @@ processCancelRequest(Port *port, void *pkt) ...@@ -1709,16 +1709,16 @@ processCancelRequest(Port *port, void *pkt)
} }
else else
/* Right PID, wrong key: no way, Jose */ /* Right PID, wrong key: no way, Jose */
ereport(DEBUG2, ereport(LOG,
(errmsg_internal("bad key in cancel request for process %d", (errmsg("bad key in cancel request for process %d",
backendPID))); backendPID)));
return; return;
} }
} }
/* No matching backend */ /* No matching backend */
ereport(DEBUG2, ereport(LOG,
(errmsg_internal("bad pid in cancel request for process %d", (errmsg("bad pid in cancel request for process %d",
backendPID))); backendPID)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment