Re: doc: update PL/pgSQL sample loop function
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Ian Barwick <ian.barwick@2ndquadrant.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-08-29T04:36:06Z
Lists: pgsql-hackers
Hi čt 29. 8. 2019 v 5:03 odesílatel Ian Barwick <ian.barwick@2ndquadrant.com> napsal: > Hi > > Here: > > > https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING > > we have a sample PL/PgSQL function (dating from at least 7.2) demonstrating > query result loops, which refreshes some pseudo materialized views stored > in > a user-defined table. > > As we've had proper materialized views since 9.3, I thought it might > be nice to update this with a self-contained sample which can be used > as-is; see attached patch. > > (As a side note the current sample function contains a couple of "%s" > placeholders which should be just "%"; a quick search of plpgsql.sgml > shows this is the only place they occur). > > Will submit to the next commitfest. > +1 Pavel > > Regards > > Ian Barwick > > -- > Ian Barwick https://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Training & Services >
Commits
-
Doc: Update PL/pgSQL sample function in plpgsql.sgml.
- 1f705e68ee4f 9.4.25 landed
- 1ae57833e26f 9.5.20 landed
- 2db5262549ef 9.6.16 landed
- a477f250a3ea 10.11 landed
- 1fcb73fe72dc 11.6 landed
- fef55c569eed 12.0 landed
- 9b3c8f07ff3f 13.0 landed