mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Renaming for new subscripting mechanism
Over at patch https://commitfest.postgresql.org/21/1062/ Dmitry wants to introduce a more generic subscription mechanism, which allows subscripting not only arrays but also other object types such as JSONB. That functionality is introduced in a largish invasive patch, out of which this internal renaming patch was extracted. Author: Dmitry Dolgov Reviewed-by: Tom Lane, Arthur Zakirov Discussion: https://postgr.es/m/CA+q6zcUK4EqPAu7XRRO5CCjMwhz5zvg+rfWuLzVoxp_5sKS6=w@mail.gmail.com
This commit is contained in:
@ -657,14 +657,14 @@ _readWindowFunc(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* _readArrayRef
|
||||
* _readSubscriptingRef
|
||||
*/
|
||||
static ArrayRef *
|
||||
_readArrayRef(void)
|
||||
static SubscriptingRef *
|
||||
_readSubscriptingRef(void)
|
||||
{
|
||||
READ_LOCALS(ArrayRef);
|
||||
READ_LOCALS(SubscriptingRef);
|
||||
|
||||
READ_OID_FIELD(refarraytype);
|
||||
READ_OID_FIELD(refcontainertype);
|
||||
READ_OID_FIELD(refelemtype);
|
||||
READ_INT_FIELD(reftypmod);
|
||||
READ_OID_FIELD(refcollid);
|
||||
@ -2597,8 +2597,8 @@ parseNodeString(void)
|
||||
return_value = _readGroupingFunc();
|
||||
else if (MATCH("WINDOWFUNC", 10))
|
||||
return_value = _readWindowFunc();
|
||||
else if (MATCH("ARRAYREF", 8))
|
||||
return_value = _readArrayRef();
|
||||
else if (MATCH("SUBSCRIPTINGREF", 15))
|
||||
return_value = _readSubscriptingRef();
|
||||
else if (MATCH("FUNCEXPR", 8))
|
||||
return_value = _readFuncExpr();
|
||||
else if (MATCH("NAMEDARGEXPR", 12))
|
||||
|
Reference in New Issue
Block a user