plpgsql can assign to subscripted variables now, e.g.
Tom Lane <tgl@sss.pgh.pa.us>
plpgsql can assign to subscripted variables now, e.g. x[42] := whatever; The facility is pretty primitive because it doesn't do array slicing and it has the same semantics as array update in SQL (array must already be non-null, etc). But it's a start.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/gram.y | modified | +29 −6 |
| src/pl/plpgsql/src/pl_exec.c | modified | +203 −37 |
| src/pl/plpgsql/src/pl_funcs.c | modified | +7 −1 |
| src/pl/plpgsql/src/plpgsql.h | modified | +14 −3 |