postgres.git / summary / log / commit / refs
commit da2c1b8a27afed7117606b3275c9809cb6f5463a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon Jan 05 13:35:38 2009 +0000
First released in: 8.4.0
Add EmitWarningsOnPlaceholders calls to contrib modules that are likely to
get listed in custom_variable_classes.
contrib/auto_explain/auto_explain.c | 4 +++-
contrib/pg_stat_statements/pg_stat_statements.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c
index af9975da125..8e0f11038c9 100644
--- a/contrib/auto_explain/auto_explain.c
+++ b/contrib/auto_explain/auto_explain.c
@@ -6,7 +6,7 @@
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.3 2009/01/02 01:16:02 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.4 2009/01/05 13:35:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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 df14d0559b3..34cbb9d0b83 100644
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -14,7 +14,7 @@
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.1 2009/01/04 22:19:59 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.2 2009/01/05 13:35:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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
[parent: 35c129cab31a]