aboutsummaryrefslogtreecommitdiff
path: root/contrib/sepgsql/hooks.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-12-21 12:12:24 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-12-21 12:12:24 -0500
commit1fada5d81e6769ded832a4ca62ee9371bac3fb9f (patch)
treeb645a3f7fc4340bcc0e6596309231c356a216d86 /contrib/sepgsql/hooks.c
parent0e6e7f0806b2080cb31f33ff992ec2e4e35fa6f1 (diff)
downloadpostgresql-1fada5d81e6769ded832a4ca62ee9371bac3fb9f.tar.gz
postgresql-1fada5d81e6769ded832a4ca62ee9371bac3fb9f.zip
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 'contrib/sepgsql/hooks.c')
-rw-r--r--contrib/sepgsql/hooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/sepgsql/hooks.c b/contrib/sepgsql/hooks.c
index 19a3ffb7ffa..44a09c35a7c 100644
--- a/contrib/sepgsql/hooks.c
+++ b/contrib/sepgsql/hooks.c
@@ -455,6 +455,8 @@ _PG_init(void)
NULL,
NULL);
+ EmitWarningsOnPlaceholders("sepgsql");
+
/* Initialize userspace access vector cache */
sepgsql_avc_init();