Skip to content

Commit da2c1b8

Browse files
committed
Add EmitWarningsOnPlaceholders calls to contrib modules that are likely to
get listed in custom_variable_classes.
1 parent 35c129c commit da2c1b8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

contrib/auto_explain/auto_explain.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.3 2009/01/02 01:16:02 tgl Exp $
9+
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.4 2009/01/05 13:35:38 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -94,6 +94,8 @@ _PG_init(void)
9494
NULL,
9595
NULL);
9696

97+
EmitWarningsOnPlaceholders("auto_explain");
98+
9799
/* Install hooks. */
98100
prev_ExecutorStart = ExecutorStart_hook;
99101
ExecutorStart_hook = explain_ExecutorStart;

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
1515
*
1616
* IDENTIFICATION
17-
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.1 2009/01/04 22:19:59 tgl Exp $
17+
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.2 2009/01/05 13:35:38 tgl Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -222,6 +222,8 @@ _PG_init(void)
222222
NULL,
223223
NULL);
224224

225+
EmitWarningsOnPlaceholders("pg_stat_statements");
226+
225227
/*
226228
* Request additional shared resources. (These are no-ops if we're not in
227229
* the postmaster process.) We'll allocate or attach to the shared

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy