Add missing EmitWarningsOnPlaceholders() calls.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/auth_delay/auth_delay.c | modified | +3 −0 |
| contrib/pg_trgm/trgm_op.c | modified | +2 −0 |
| contrib/postgres_fdw/option.c | modified | +2 −0 |
| contrib/sepgsql/hooks.c | modified | +2 −0 |
| src/backend/utils/misc/guc.c | modified | +7 −0 |
| src/pl/tcl/pltcl.c | modified | +3 −0 |
| src/test/modules/delay_execution/delay_execution.c | modified | +2 −0 |
| src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c | modified | +3 −0 |
| src/test/modules/worker_spi/worker_spi.c | modified | +2 −0 |
Discussion
- Emit a warning if the extension's GUC is set incorrectly 24 messages · 2021-11-14 → 2022-02-21