You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x[1:2][3:4] in PostgreSQL represents fetching x[0..1, 2..3]. Since vector is always an 1D array we do not support it for the first.
Later we would like to keep consistency with Python haviours. So there are no reason why we do not support multiple subscripts attached to a vector value now. We should implement it for convenience.
The text was updated successfully, but these errors were encountered:
@usamoi Hi, after I tried implementing this feature, and modifying to get multiple subscripts in transform(), I have no idea in modifying sbs_check_subscripts and something else.
I assume it should be implemented with a loop operation, but seems let state = &mut *(*op).d.sbsref.state; is not a list or implemented any memeber function to head next one.
Is there any tutorial, ref or blog to help understand pgrx::pg_sys::SubscriptRef, pgrx::pg_sys::SubscriptRefState and pgrx::pg_sys::SubscriptRoutines?
Ref:
x[1:2][3:4]
in PostgreSQL represents fetchingx[0..1, 2..3]
. Sincevector
is always an 1D array we do not support it for the first.Later we would like to keep consistency with Python haviours. So there are no reason why we do not support multiple subscripts attached to a vector value now. We should implement it for convenience.
The text was updated successfully, but these errors were encountered: