mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +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:
@@ -1153,11 +1153,11 @@ _outWindowFunc(StringInfo str, const WindowFunc *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outArrayRef(StringInfo str, const ArrayRef *node)
|
||||
_outSubscriptingRef(StringInfo str, const SubscriptingRef *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("ARRAYREF");
|
||||
WRITE_NODE_TYPE("SUBSCRIPTINGREF");
|
||||
|
||||
WRITE_OID_FIELD(refarraytype);
|
||||
WRITE_OID_FIELD(refcontainertype);
|
||||
WRITE_OID_FIELD(refelemtype);
|
||||
WRITE_INT_FIELD(reftypmod);
|
||||
WRITE_OID_FIELD(refcollid);
|
||||
@@ -3789,8 +3789,8 @@ outNode(StringInfo str, const void *obj)
|
||||
case T_WindowFunc:
|
||||
_outWindowFunc(str, obj);
|
||||
break;
|
||||
case T_ArrayRef:
|
||||
_outArrayRef(str, obj);
|
||||
case T_SubscriptingRef:
|
||||
_outSubscriptingRef(str, obj);
|
||||
break;
|
||||
case T_FuncExpr:
|
||||
_outFuncExpr(str, obj);
|
||||
|
||||
Reference in New Issue
Block a user