diff options
| author | Tom Lane | 2021-12-21 17:12:24 +0000 |
|---|---|---|
| committer | Tom Lane | 2021-12-21 17:12:24 +0000 |
| commit | 1fada5d81e6769ded832a4ca62ee9371bac3fb9f (patch) | |
| tree | b645a3f7fc4340bcc0e6596309231c356a216d86 /src/pl | |
| parent | 0e6e7f0806b2080cb31f33ff992ec2e4e35fa6f1 (diff) | |
Add missing EmitWarningsOnPlaceholders() calls.
Extensions that define any custom GUCs should call
EmitWarningsOnPlaceholders after doing so, to help catch misspellings.
Many of our contrib modules hadn't gotten the memo on that, though.
Also add such calls to src/test/modules extensions that have GUCs.
While these aren't really user-facing, they should illustrate good
practice not faulty practice.
Shinya Kato
Discussion: https://postgr.es/m/524fa2c0a34f34b68fbfa90d0760d515@oss.nttdata.com
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/tcl/pltcl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c index e11837559da..7c045f45607 100644 --- a/src/pl/tcl/pltcl.c +++ b/src/pl/tcl/pltcl.c @@ -474,6 +474,9 @@ _PG_init(void) PGC_SUSET, 0, NULL, NULL, NULL); + EmitWarningsOnPlaceholders("pltcl"); + EmitWarningsOnPlaceholders("pltclu"); + pltcl_pm_init_done = true; } |
