mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Improve spelling of new FINALFUNC_MODIFY aggregate attribute.
I'd used SHARABLE as a value originally, but Peter Eisentraut points out that dictionaries agree that SHAREABLE is the preferred spelling. Run around and change that before it's too late. Discussion: https://postgr.es/m/d2e1afd4-659c-50d6-1b20-7cfd3675e909@2ndquadrant.com
This commit is contained in:
@ -477,13 +477,13 @@ extractModify(DefElem *defel)
|
||||
|
||||
if (strcmp(val, "read_only") == 0)
|
||||
return AGGMODIFY_READ_ONLY;
|
||||
if (strcmp(val, "sharable") == 0)
|
||||
return AGGMODIFY_SHARABLE;
|
||||
if (strcmp(val, "shareable") == 0)
|
||||
return AGGMODIFY_SHAREABLE;
|
||||
if (strcmp(val, "read_write") == 0)
|
||||
return AGGMODIFY_READ_WRITE;
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("parameter \"%s\" must be READ_ONLY, SHARABLE, or READ_WRITE",
|
||||
errmsg("parameter \"%s\" must be READ_ONLY, SHAREABLE, or READ_WRITE",
|
||||
defel->defname)));
|
||||
return 0; /* keep compiler quiet */
|
||||
}
|
||||
|
Reference in New Issue
Block a user