Is "query" a reserved word in 8.3 plpgsql? - Mailing list pgsql-general

From Todd A. Cook
Subject Is "query" a reserved word in 8.3 plpgsql?
Date
Msg-id 4734D9E9.2070101@blackducksoftware.com
Whole thread Raw
Responses Re: Is "query" a reserved word in 8.3 plpgsql?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

I saw the item in the release notes about the new "return query" syntax in pl/pgsql,
but I didn't see any note about "query" being reserved now.  Perhaps an explicit
mention should be added?

I loaded a dump from 8.2.4 into 8.3b2 without error.  However, every function that
uses "query" as a variable name now fails with a syntax error when it is executed:

     ERROR:  syntax error at or near "query" at character 151

My workaround will be to extract the functions from the dump, edit them to rename
the variable, and load them into the new db.

-- todd

pgsql-general by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Importance of CPU floating point performance...
Next
From: Simon Riggs
Date:
Subject: Re: "Resurrected" data files - problem?