Just to verify, I'm getting the same message when trying the examplesin the following docs:
PostgreSQL 7.2 Documentation Chapter 23. PL/pgSQL - SQL Procedural Language 23.2. Structure of PL/pgSQL