1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

Rename EmitWarningsOnPlaceholders() to MarkGUCPrefixReserved().

This seems like a clearer name for what it does now.

Provide a compatibility macro so that extensions don't have to convert
to the new name right away.

Discussion: https://postgr.es/m/116024.1640111629@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2021-12-27 14:39:08 -05:00
parent 2ed8a8cc5b
commit 5609cc01c6
15 changed files with 24 additions and 17 deletions

View File

@@ -9360,11 +9360,15 @@ DefineCustomEnumVariable(const char *name,
}
/*
* Mark the given GUC prefix as "reserved".
*
* This prints warnings if there are any existing placeholders matching
* the prefix, and then prevents new ones from being created.
* Extensions should call this after they've defined all of their custom
* GUCs, to help catch misspelled config-file entries,
* GUCs, to help catch misspelled config-file entries.
*/
void
EmitWarningsOnPlaceholders(const char *className)
MarkGUCPrefixReserved(const char *className)
{
int classLen = strlen(className);
int i;