1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

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
This commit is contained in:
Tom Lane
2021-12-21 12:12:24 -05:00
parent 0e6e7f0806
commit 1fada5d81e
9 changed files with 26 additions and 0 deletions

View File

@ -469,4 +469,6 @@ _PG_init(void)
NULL,
NULL,
NULL);
EmitWarningsOnPlaceholders("postgres_fdw");
}