On 1/9/17 3:01 AM, Pavel Stehule wrote:
> You are forgot on function paramaters - somebody can use a function
> argument like FOUND, .. So auto variables should to be declared in most
> top namespace.
Right, that's why I said it was an alternative. I agree it would be
better to just have 2 explicit namespaces: the top one being auto
variables and the one below that being function arguments. The namespace
below that would be the top-most *user* block.
Both of the pre-defined namespaces need the ability to change their
name; I don't see any issue with using PRAGMA for that.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)