Update for sample PL/PgSQL function (section 40.6.4) - Mailing list pgsql-docs

From Ian Lawrence Barwick
Subject Update for sample PL/PgSQL function (section 40.6.4)
Date
Msg-id CAB8KJ=hG2PMGpO4sPe_MoLzCAOH3jCrGS8oY6KQoPekXV+3HoA@mail.gmail.com
Whole thread Raw
List pgsql-docs
In the PL/PgSQL documentation, section "40.6.4. Looping Through Query
Results" [1]
contains a sample function which refreshes pseudo-materialized views. As 9.3 has
proper materialized views, I thought it could do with updating. There
was also an erroneous
"%s" in a RAISE NOTICE, and I've tweaked the function definition a bit
to increase its
usefulness as a sample.

[1]
http://www.postgresql.org/docs/devel/static/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING

Regards

Ian Barwick

Attachment

pgsql-docs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: A user report of misinterpretation of 'unsupported versions'
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #7722: extract(epoch from age(...)) appears to be broken