On 21/11/2012 12:01, Peter Kroon wrote: > So, multiple DECLARE sections are not allowed? Actually, I just had a quick look here - http://www.postgresql.org/docs/9.2/static/plpgsql-structure.html - and it seems that you can have multiple declare - begin - end blocks. Try it and see! Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@xxxxxx -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general