Re: WIP: Enhanced ALTER OPERATOR - Mailing list pgsql-hackers

From Uriy Zhuravlev
Subject Re: WIP: Enhanced ALTER OPERATOR
Date
Msg-id 2851253.lZzVjpUOJ0@dinodell
Whole thread Raw
In response to Re: WIP: Enhanced ALTER OPERATOR  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WIP: Enhanced ALTER OPERATOR
Re: WIP: Enhanced ALTER OPERATOR
List pgsql-hackers
On Monday 18 May 2015 10:21:10 you wrote:
> difficulty of updating existing cached plans
Could you specify more precisely about some caches we talking about? PREPARE 
working correctly:

CREATE TABLE test_ints(i int4);
CREATE TABLE
CREATE INDEX idx ON test_ints(i);
CREATE INDEX
set enable_bitmapscan=off;
SET
set enable_seqscan=off;
SET
PREPARE test_plan (int) AS        SELECT * FROM test_ints WHERE $1::int4 > i;
PREPARE
EXPLAIN (COSTS OFF)
EXECUTE test_plan(5);              QUERY PLAN               
----------------------------------------Index Only Scan using idx on test_ints  Index Cond: (i < 5)

ALTER OPERATOR > (int4, int4) SET COMMUTATOR NONE;
ALTER OPERATOR
EXPLAIN (COSTS OFF)
EXECUTE test_plan(5);              QUERY PLAN               
----------------------------------------Index Only Scan using idx on test_ints  Filter: (5 > i)


And can you explain more about the syntax?

Thanks.

-- 
Uriy Zhuravlev
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



pgsql-hackers by date:

Previous
From: Volker Aßmann
Date:
Subject: Re: Disabling trust/ident authentication configure option
Next
From: Etsuro Fujita
Date:
Subject: Typo in tablecmds.c