1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

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.
This commit is contained in:
Bruce Momjian
2004-05-07 01:53:41 +00:00
parent ae96e629b8
commit 63d0139061
2 changed files with 4 additions and 16 deletions

View File

@ -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)