pgsql: Add missing EmitWarningsOnPlaceholders() calls.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add missing EmitWarningsOnPlaceholders() calls.
Date: 2021-12-21 17:12:46
Message-ID: E1mzigw-00081T-FJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1fada5d81e6769ded832a4ca62ee9371bac3fb9f

Modified Files
--------------
contrib/auth_delay/auth_delay.c | 3 +++
contrib/pg_trgm/trgm_op.c | 2 ++
contrib/postgres_fdw/option.c | 2 ++
contrib/sepgsql/hooks.c | 2 ++
src/backend/utils/misc/guc.c | 7 +++++++
src/pl/tcl/pltcl.c | 3 +++
src/test/modules/delay_execution/delay_execution.c | 2 ++
src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c | 3 +++
src/test/modules/worker_spi/worker_spi.c | 2 ++
9 files changed, 26 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-12-21 21:18:55 pgsql: Add help & tab-complete support for psql's \getenv.
Previous Message Tom Lane 2021-12-20 21:49:58 pgsql: Merge dblink's paths test script into its main test.