*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.401 2004/04/25 18:23:56 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.402 2004/05/07 01:53:41 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
on_proc_exit(log_disconnections,0);
}
- /*
- * Post-processing for command line options.
- */
- if (log_statement_stats &&
- (log_parser_stats || log_planner_stats || log_executor_stats))
- {
- ereport(WARNING,
- (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("statement-level statistics are disabled because parser, planner, or executor statistics are on")));
- SetConfigOption("log_statement_stats", "false", ctx, gucsource);
- }
-
if (!IsUnderPostmaster || ExecBackend)
{
if (!potential_DataDir)
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.203 2004/05/07 01:34:08 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.204 2004/05/07 01:53:41 momjian Exp $
*
*--------------------------------------------------------------------
*/
{
if (doit)
ereport(ERROR,
- (errcode(ERRCODE_ERROR_IN_ASSIGNMENT),
+ (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("Can not enable parameter when \"log_statement_stats\" is true.")));
else
return false;
{
if (doit)
ereport(ERROR,
- (errcode(ERRCODE_ERROR_IN_ASSIGNMENT),
+ (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("Can not enable \"log_statement_stats\" when \"log_parser_stats\",\n"
"\"log_planner_stats\", or \"log_executor_stats\" is true.")));
else