*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.471 2005/12/14 17:06:27 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.472 2005/12/30 22:55:20 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
if (log_statement == LOGSTMT_ALL)
ereport(LOG,
- (errmsg("statement: PREPARE %s AS %s",
+ (errmsg("statement: [client] PREPARE %s AS %s",
(*stmt_name != '\0') ? stmt_name : "",
query_string)));
/* We need to output the parameter values someday */
if (log_statement == LOGSTMT_ALL)
ereport(LOG,
- (errmsg("statement: %s", portal_name)));
+ (errmsg("statement: [client] %s", portal_name)));
/*
* Fetch parameters, if any, and store in the portal's memory context.
if (log_statement == LOGSTMT_ALL)
/* We have the portal, so output the source query. */
ereport(LOG,
- (errmsg("statement: %sEXECUTE %s [PREPARE: %s]",
+ (errmsg("statement: [client] %sEXECUTE %s [PREPARE: %s]",
(execute_is_fetch) ? "FETCH from " : "",
(*portal_name != '\0') ? portal_name : "",
portal->sourceText ? portal->sourceText : "")));
(save_log_min_duration_statement > 0 &&
usecs >= save_log_min_duration_statement * 1000))
ereport(LOG,
- (errmsg("duration: %ld.%03ld ms statement: %sEXECUTE %s [PREPARE: %s]",
+ (errmsg("duration: %ld.%03ld ms statement: [client] %sEXECUTE %s [PREPARE: %s]",
(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,