Re: Why do OLD and NEW have special internal names? - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Why do OLD and NEW have special internal names?
Date
Msg-id 4AF700BC.3060507@agliodbs.com
Whole thread Raw
In response to Why do OLD and NEW have special internal names?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom,

> BTW, this brings up another point, which is that up to now it's often
> been possible to use plpgsql variable names that conflict with
> core-parser reserved words, so long as you didn't need to use the
> reserved word with its special meaning.  That will stop working when
> this patch goes in.  Doesn't bother me any, but if anyone thinks it's
> a serious problem, speak now.

Sounds like a potential *big* blocker to upgrading; anyone with several
thousand lines of plpgsql can't really afford to refactor away all of
the accidental uses of reserved words.

That being said, reusing reserved words in this way was always wonky, so
I'm not sure how many people will have done so.  Best way is to commit
it to alpha3, and try to get people to test.

--Josh Berkus


pgsql-hackers by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: [PATCH] tsearch parser inefficiency if text includes urls or emails - new version
Next
From: Simon Riggs
Date:
Subject: Re: Typed tables