Index: src/backend/tcop/postgres.c =================================================================== RCS file: /cvsroot/pgsql/src/backend/tcop/postgres.c,v retrieving revision 1.457 diff -c -c -r1.457 postgres.c *** src/backend/tcop/postgres.c 11 Aug 2005 21:11:45 -0000 1.457 --- src/backend/tcop/postgres.c 2 Sep 2005 21:46:20 -0000 *************** *** 1164,1170 **** if (log_statement == LOGSTMT_ALL) ereport(LOG, ! (errmsg("statement: PREPARE %s AS %s", stmt_name, query_string))); /* * Start up a transaction command so we can run parse analysis etc. --- 1164,1172 ---- if (log_statement == LOGSTMT_ALL) ereport(LOG, ! (errmsg("statement: PREPARE %s AS %s", ! (*stmt_name != '\0') ? stmt_name : "", ! query_string))); /* * Start up a transaction command so we can run parse analysis etc. *************** *** 1732,1738 **** if (log_statement == LOGSTMT_ALL) /* We have the portal, so output the source query. */ ereport(LOG, ! (errmsg("statement: EXECUTE %s [PREPARE: %s]", portal_name, portal->sourceText ? portal->sourceText : ""))); BeginCommand(portal->commandTag, dest); --- 1734,1741 ---- if (log_statement == LOGSTMT_ALL) /* We have the portal, so output the source query. */ ereport(LOG, ! (errmsg("statement: EXECUTE %s [PREPARE: %s]", ! (*portal_name != '\0') ? portal_name : "", portal->sourceText ? portal->sourceText : ""))); BeginCommand(portal->commandTag, dest); *************** *** 1867,1873 **** (long) ((stop_t.tv_sec - start_t.tv_sec) * 1000 + (stop_t.tv_usec - start_t.tv_usec) / 1000), (long) (stop_t.tv_usec - start_t.tv_usec) % 1000, ! portal_name, portal->sourceText ? portal->sourceText : ""))); } --- 1870,1876 ---- (long) ((stop_t.tv_sec - start_t.tv_sec) * 1000 + (stop_t.tv_usec - start_t.tv_usec) / 1000), (long) (stop_t.tv_usec - start_t.tv_usec) % 1000, ! (*portal_name != '\0') ? portal_name : "", portal->sourceText ? portal->sourceText : ""))); }