1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Change some frequently-reached elog(DEBUG...) calls to ereport(DEBUG...)

for speed reasons.  (ereport falls out much more quickly when no output
is needed than elog does.)
This commit is contained in:
Tom Lane
2003-08-12 18:23:21 +00:00
parent 1c6702f6fc
commit fcb90fdc95
5 changed files with 96 additions and 50 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.71 2003/08/06 17:46:46 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.72 2003/08/12 18:23:21 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -723,7 +723,8 @@ PortalRunUtility(Portal portal, Query *query,
{
Node *utilityStmt = query->utilityStmt;
elog(DEBUG3, "ProcessUtility");
ereport(DEBUG3,
(errmsg_internal("ProcessUtility")));
/*
* Set snapshot if utility stmt needs one. Most reliable way to do
@ -827,7 +828,8 @@ PortalRunMulti(Portal portal,
/*
* process a plannable query.
*/
elog(DEBUG3, "ProcessQuery");
ereport(DEBUG3,
(errmsg_internal("ProcessQuery")));
/* Must always set snapshot for plannable queries */
SetQuerySnapshot();