Re: Cluster wide option to control symbol case folding

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "Lewis, Ian (Microstar Laboratories)" <ilewis(at)mstarlabs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Cluster wide option to control symbol case folding
Date: 2017-01-04 17:17:08
Message-ID: CA+TgmoavoM5iayqD-3vh9MZaeWypdkE7ruLq-J3Cd62EP9NUHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 3, 2017 at 6:45 PM, Lewis, Ian (Microstar Laboratories)
<ilewis(at)mstarlabs(dot)com> wrote:
> One idea, which would likely be harder to implement on the server, but
> that would have less impact on third party tools and libraries, would be
> to configure case folding on a session basis. There would have to be
> some means to configure a session for the case folding your application
> wants to see. And, the general default would have to be the current
> PostgreSQL behavior so that an application that was designed for current
> behavior would never see a change.

Where you get into trouble there is that you might run CREATE
EXTENSION from that session, or call an SQL function defined in a
session with different settings (perhaps a function created by an
extension). This is not unlike various problems we've had over the
years with search_path, which really ought to be lexically scoped but
is in fact dynamically scoped.

Again, I'm not trying to rain down fire and brimstone on your idea
here and I clearly see the utility of it. I also think it's great
that you've engaged in the discussion in the way that you have.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2017-01-04 17:34:01 Re: proposal: session server side variables
Previous Message Pavel Stehule 2017-01-04 17:13:35 Re: proposal: session server side variables