Make plpgsql support FOR over a query specified by a cursor declaration,
Tom Lane <tgl@sss.pgh.pa.us>
Make plpgsql support FOR over a query specified by a cursor declaration, for improved compatibility with Oracle. Pavel Stehule, with some fixes by me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpgsql.sgml | modified | +163 −110 |
| src/pl/plpgsql/src/gram.y | modified | +144 −89 |
| src/pl/plpgsql/src/pl_comp.c | modified | +27 −30 |
| src/pl/plpgsql/src/pl_exec.c | modified | +345 −322 |
| src/pl/plpgsql/src/pl_funcs.c | modified | +30 −1 |
| src/pl/plpgsql/src/plpgsql.h | modified | +35 −3 |
| src/test/regress/expected/plpgsql.out | modified | +116 −0 |
| src/test/regress/sql/plpgsql.sql | modified | +74 −0 |