Add EmitWarningsOnPlaceholders calls to contrib modules that are likely to
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Jan 2009 13:35:38 +0000 (13:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Jan 2009 13:35:38 +0000 (13:35 +0000)
get listed in custom_variable_classes.

contrib/auto_explain/auto_explain.c
contrib/pg_stat_statements/pg_stat_statements.c

index f76dcbd1c72a55f8475af6a31e84a0073d6e028d..aa1ae0bdee50a33dac1a0db8f3b30d5af3f077d0 100644 (file)
@@ -94,6 +94,8 @@ _PG_init(void)
                                                         NULL,
                                                         NULL);
 
+       EmitWarningsOnPlaceholders("auto_explain");
+
        /* Install hooks. */
        prev_ExecutorStart = ExecutorStart_hook;
        ExecutorStart_hook = explain_ExecutorStart;
index 68db77f2b295cb9b15dadefe0fb9c9de79923730..81e1dce936da835235635cb71b1c36d2a4971807 100644 (file)
@@ -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