From 63d013906181397ac4f807bc316dd6bf97f82a2f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 7 May 2004 01:53:41 +0000 Subject: Remove crude test for log_statement_stats in startup code now that we have a more proper GUC based test. Also change error return code to ERRCODE_INVALID_PARAMETER_VALUE so it matches the old error return code. --- src/backend/tcop/postgres.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index f2ca110493a..89ec36287c7 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * 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 @@ -2533,18 +2533,6 @@ PostgresMain(int argc, char *argv[], const char *username) 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) -- cgit v1.2.3