*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.473 2005/12/30 23:49:48 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.474 2005/12/31 16:50:44 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
entry->query_string)
{
*prepare_string = palloc(strlen(entry->query_string) +
- strlen(" [client PREPARE: %s]") - 1);
- sprintf(*prepare_string, " [client PREPARE: %s]",
+ strlen(" [protocol PREPARE: %s]") - 1);
+ sprintf(*prepare_string, " [protocol PREPARE: %s]",
entry->query_string);
}
}
if (log_statement == LOGSTMT_ALL)
ereport(LOG,
- (errmsg("statement: [client] PREPARE %s AS %s",
+ (errmsg("statement: [protocol] 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: [client] %s", portal_name)));
+ (errmsg("statement: [protocol] %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: [client] %sEXECUTE %s [PREPARE: %s]",
+ (errmsg("statement: [protocol] %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: [client] %sEXECUTE %s [PREPARE: %s]",
+ (errmsg("duration: %ld.%03ld ms statement: [protocol] %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,