From: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> |
---|---|
To: | Uriy Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: Enhanced ALTER OPERATOR |
Date: | 2015-05-18 15:07:50 |
Message-ID: | CAPpHfdv_dKHhz2hoqca8RoEwdcvVRwZfARn4qJV+Nrb=KNSwBw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, May 18, 2015 at 5:44 PM, Uriy Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>
wrote:
> On Monday 18 May 2015 10:21:10 Tom Lane wrote:
> > There are fairly significant reasons why we have not done this, based
> > on the difficulty of updating existing cached plans that might have
> > incidentally depended on those operator properties during creation.
> > Perhaps it's all right to simply ignore such concerns, but I would like
> > to see a defense of why.
>
> Then need to prohibit the use of shells operators (stub operators) to
> create
> self-linkage. Implicitly changing commutators and negators working for a
> long
> time through the shell operators.
>
I could give another motivation. AFAICS, typically ALTER OPERATOR should
introduce enchancements. For instance, some version of extension didn't
have negator for operator. In the next version extension introduce such
negator. Or the same situation with selectivity estimation. If ALTER
OPERATOR introduce only enchancements then old plans could be not optimal
but they don't lead to invalid query answers. From this point of view cache
invalidation after ALTER OPERATOR is term of optimization. We could include
into the patch documentation statement about possible side effects with
cached query plans.
------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Nasby | 2015-05-18 15:36:13 | Re: Disabling trust/ident authentication configure option |
Previous Message | Bruce Momjian | 2015-05-18 14:58:42 | Re: pg_upgrade cleanup |