Doc: Update PL/pgSQL sample function in plpgsql.sgml.
authorAmit Kapila <[email protected]>
Wed, 11 Sep 2019 04:25:38 +0000 (09:55 +0530)
committerAmit Kapila <[email protected]>
Thu, 12 Sep 2019 08:57:05 +0000 (14:27 +0530)
commit1f705e68ee4fcff5787723bbee256139ce05e1b7
tree9182999ff56e782c8ec95f2e26757b4f61eec24e
parent3d12829ccb16c582140d515a3a558d8aa5692ed0
Doc: Update PL/pgSQL sample function in plpgsql.sgml.

The example used to explain 'Looping Through Query Results' uses
pseudo-materialized views.  Replace it with a more up-to-date example
which does the same thing with actual materialized views, which have
been available since PostgreSQL 9.3.

In the passing, change '%' as format specifier instead of '%s' as is used
in other examples in plpgsql.sgml.

Reported-by: Ian Barwick
Author: Ian Barwick
Reviewed-by: Amit Kapila
Backpatch-through: 9.4
Discussion: https://postgr.es/m/9a70d393-7904-4918-c97c-649f6d114b6a@2ndquadrant.com
doc/src/sgml/plpgsql.sgml