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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user