From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped
Date: Fri, 25 Mar 2016 16:33:27 +0000
Message-ID: <E1ajUfv-0006AW-CC@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped operator.
This avoids leaving dangling links in pg_operator; which while fairly
harmless are also unsightly.
While we're at it, simplify OperatorUpd, which went through
heap_modify_tuple for no very good reason considering it had already made
a tuple copy it could just scribble on.
Roma Sokolov, reviewed by Tomas Vondra, additional hacking by Robert Haas
and myself.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/c94959d4110a1965472956cfd631082a96f64a84
Modified Files
--------------
src/backend/catalog/pg_operator.c | 196 ++++++++++++++--------------
src/backend/commands/operatorcmds.c | 20 +++
src/include/catalog/pg_operator_fn.h | 2 +
src/test/regress/expected/drop_operator.out | 61 +++++++++
src/test/regress/parallel_schedule | 2 +-
src/test/regress/serial_schedule | 3 +-
src/test/regress/sql/drop_operator.sql | 56 ++++++++
7 files changed, 239 insertions(+), 101 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped
In-Reply-To: <E1ajUfv-0006AW-CC@gemulon.postgresql.org>
References: <E1ajUfv-0006AW-CC@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