mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Update comments concerning PGC_S_TEST.
This GUC context value was once only used by ALTER DATABASE SET and ALTER USER SET. That's not true anymore, though, so rewrite the comments to be a bit more general. Patch in HEAD only, since this is just an internal documentation issue.
This commit is contained in:
7
src/backend/utils/cache/ts_cache.c
vendored
7
src/backend/utils/cache/ts_cache.c
vendored
@ -604,11 +604,8 @@ check_TSCurrentConfig(char **newval, void **extra, GucSource source)
|
||||
cfgId = get_ts_config_oid(stringToQualifiedNameList(*newval), true);
|
||||
|
||||
/*
|
||||
* When source == PGC_S_TEST, we are checking the argument of an ALTER
|
||||
* DATABASE SET or ALTER USER SET command. It could be that the
|
||||
* intended use of the setting is for some other database, so we
|
||||
* should not error out if the text search configuration is not
|
||||
* present in the current database. We issue a NOTICE instead.
|
||||
* When source == PGC_S_TEST, don't throw a hard error for a
|
||||
* nonexistent configuration, only a NOTICE. See comments in guc.h.
|
||||
*/
|
||||
if (!OidIsValid(cfgId))
|
||||
{
|
||||
|
Reference in New Issue
Block a user