Re: proposal: schema PL session variables

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <obartunov(at)gmail(dot)com>
Subject: Re: proposal: schema PL session variables
Date: 2016-02-08 12:22:50
Message-ID: 56B8889A.90604@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08/02/16 13:17, Pavel Stehule wrote:
> 2016-02-08 13:03 GMT+01:00 Marko Tiikkaja <marko(at)joh(dot)to>:
>> How does this function know which schema variables are visible?
>
> function see all schema variables from same schema as function's schema

Personally I find that undesirable. I don't know what oracle does, but
variables being visible without schema-qualifying them can introduce
variable conflicts in PL/PgSQL. I'd prefer if you could only refer to
them by prefixing them with the schema name (or maybe allow search_path
to be used).

.m

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-02-08 12:34:50 Re: remove wal_level archive
Previous Message Pavel Stehule 2016-02-08 12:17:14 Re: proposal: schema PL session variables