From d31d0bc5c81a5c837e0e7f71a0d157fc077d734c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 5 Jan 2009 13:35:38 +0000 Subject: [PATCH] Add EmitWarningsOnPlaceholders calls to contrib modules that are likely to get listed in custom_variable_classes. --- contrib/auto_explain/auto_explain.c | 2 ++ contrib/pg_stat_statements/pg_stat_statements.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c index f76dcbd1c7..aa1ae0bdee 100644 --- a/contrib/auto_explain/auto_explain.c +++ b/contrib/auto_explain/auto_explain.c @@ -94,6 +94,8 @@ _PG_init(void) NULL, NULL); + EmitWarningsOnPlaceholders("auto_explain"); + /* Install hooks. */ prev_ExecutorStart = ExecutorStart_hook; ExecutorStart_hook = explain_ExecutorStart; diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index 68db77f2b2..81e1dce936 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -222,6 +222,8 @@ _PG_init(void) NULL, NULL); + EmitWarningsOnPlaceholders("pg_stat_statements"); + /* * Request additional shared resources. (These are no-ops if we're not in * the postmaster process.) We'll allocate or attach to the shared -- 2.39.5