Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda2c1b8

Browse files
committed
Add EmitWarningsOnPlaceholders calls to contrib modules that are likely to
get listed in custom_variable_classes.
1 parent35c129c commitda2c1b8

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)

[8]ページ先頭

©2009-2025 Movatter.jp