Re: updated patch for foreach stmt - Mailing list pgsql-hackers
From | Pavel Stehule |
---|---|
Subject | Re: updated patch for foreach stmt |
Date | |
Msg-id | AANLkTim2o4Kb6_HC+KZjfp3X2h8+y6nMngpG5axqH3f+@mail.gmail.com Whole thread Raw |
In response to | Re: updated patch for foreach stmt (Stephen Frost <sfrost@snowman.net>) |
Responses |
Re: updated patch for foreach stmt
|
List | pgsql-hackers |
2011/2/8 Stephen Frost <sfrost@snowman.net>: > Greetings, > > * Pavel Stehule (pavel.stehule@gmail.com) wrote: >> I resend a patch with last update of this patch > > Alright, so, like I said, I really like this feature and would like to > see it included. To that end, I've done perhaps a bit more than a > review of the patch. Pavel, if you could go over the changes I've made > and review them and let me know if you see any problems, I'd appreciate > it. I've tried to get it ready for a committer as much as I can without > being one. :) > > I moved the array iteration over into arrayfuncs.c, cleaned it up quite > a bit, cleaned up the pl/pgsql foreach function, improved the PL/PgSQL > documentation to understand FOREACH as another top-level command, added > comments all over the place, etc. > It's looking well - thank you. There is only bad keywords in doc - SCALE instead SLICE and a maybe a usage of slicing need a example. It is nice. Regards Pavel Stehule > Passes all regressions too. > > commit 19deaf69a4dabfa4a223a6dcd36570866ad0bd3c > Author: Stephen Frost <sfrost@snowman.net> > Date: Tue Feb 8 15:15:48 2011 -0500 > > PL/PgSQL FOREACH cleanup > > Define and rename element OID to be more consistant, ensure > that the right name gets returned in error messages, and fix > regression output to match new error message (grammar cleanup). > > commit f88fd2ab5419f9a2784677038b3fb01053c69163 > Merge: f191af1 8c6e3ad > Author: Stephen Frost <sfrost@snowman.net> > Date: Tue Feb 8 14:28:18 2011 -0500 > > Merge branch 'master' of git://git.postgresql.org/git/postgresql into plpgsql_foreach > > commit f191af16f9d3e5ae0072e61c1b58713040cc8d64 > Author: Stephen Frost <sfrost@snowman.net> > Date: Tue Feb 8 14:27:05 2011 -0500 > > PL/PgSQL FOREACH Minor Whitespace Cleanup > > commit 612cf5485f202a49aec70cf32f74d19d0d130b6b > Author: Stephen Frost <sfrost@snowman.net> > Date: Tue Feb 8 14:06:06 2011 -0500 > > Improving FOREACH, code and documentation > > This patch moves and reworks much of the array iteration code > that FOREACH had been implemented with to be part of arrayfuncs.c > and exported through utils/array.h. It also cleans up the error > handling and set up pieces of the FOREACH handling in pl_exec.c > Lastly, the documentation and comments are updated and improved. > > commit 89058b79e43311e8f37af16c3fc17b622dc97578 > Author: Stephen Frost <sfrost@snowman.net> > Date: Sun Feb 6 14:14:04 2011 -0500 > > Add FOREACH top-level PL/PgSQL command > > This patch adds a new top-level PL/PgSQL command called FOREACH which > is intended to be for iterating over multi-value variables. This also > includes the first FOREACH type, an ARRAY iteration capability. > > Patch by Pavel Stehule. > > Thanks, > > Stephen > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAk1Rpu8ACgkQrzgMPqB3kiiuTQCfdY8Cwg5DVuvu2xKpcv6M7QQ1 > +TwAnR5ZFXsGdAwgHwQEprcYIlp8t0wy > =DAjZ > -----END PGP SIGNATURE----- > >
pgsql-hackers by date: