pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add ALTER OPERATOR command, for changing selectivity estimator f
Date: Tue, 14 Jul 2015 15:22:27 +0000
Message-ID: <E1ZF22N-0000aT-I3@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add ALTER OPERATOR command, for changing selectivity estimator functions.

Other options cannot be changed, as it's not totally clear if cached plans
would need to be invalidated if one of the other options change. Selectivity
estimator functions only change plan costs, not correctness of plans, so
those should be safe.

Original patch by Uriy Zhuravlev, heavily edited by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/321eed5f0f7563a0cabb3d7a98132856287c1ad1

Modified Files
--------------
doc/src/sgml/ref/alter_operator.sgml         |   34 ++-
src/backend/commands/operatorcmds.c          |  301 +++++++++++++++++++++-----
src/backend/nodes/copyfuncs.c                |   15 ++
src/backend/nodes/equalfuncs.c               |   13 ++
src/backend/parser/gram.y                    |   34 ++-
src/backend/tcop/utility.c                   |    9 +
src/include/commands/defrem.h                |    1 +
src/include/nodes/nodes.h                    |    1 +
src/include/nodes/parsenodes.h               |   13 ++
src/test/regress/expected/alter_operator.out |   76 +++++++
src/test/regress/parallel_schedule           |    2 +-
src/test/regress/serial_schedule             |    1 +
src/test/regress/sql/alter_operator.sql      |   64 ++++++
13 files changed, 499 insertions(+), 65 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ZF22N-0000aT-I3@gemulon.postgresql.org>
Permalink:  ../E1ZF22N-0000aT-I3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZF22N-0000aT-I3@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Add ALTER OPERATOR command, for changing selectivity estimator f
  In-Reply-To: <E1ZF22N-0000aT-I3@gemulon.postgresql.org>
  References: <E1ZF22N-0000aT-I3@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox