From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove some useless code
Date: Mon, 31 Dec 2018 17:51:03 +0000
Message-ID: <E1ge1iR-0003tA-VC@gemulon.postgresql.org> (raw)
Remove some useless code
In commit 8b08f7d4820f I added member relationId to IndexStmt struct.
I'm now not sure why; DefineIndex doesn't need it, since the relation
OID is passed as a separate argument anyway. Remove it.
Also remove a redundant assignment to the relationId argument (it wasn't
redundant when added by commit e093dcdd285, but should have been removed
in commit 5f173040e3), and use relationId instead of stmt->relation when
locking the relation in the second phase of CREATE INDEX CONCURRENTLY,
which is not only confusing but it means we resolve the name twice for
no reason.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e439c6f0c3ddc6e4b71922ec326cb796c2885656
Modified Files
--------------
src/backend/commands/indexcmds.c | 5 ++---
src/backend/nodes/copyfuncs.c | 1 -
src/backend/nodes/equalfuncs.c | 1 -
src/backend/nodes/outfuncs.c | 1 -
src/backend/parser/gram.y | 2 --
src/backend/parser/parse_utilcmd.c | 1 -
src/include/nodes/parsenodes.h | 1 -
7 files changed, 2 insertions(+), 10 deletions(-)
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Remove some useless code
In-Reply-To: <E1ge1iR-0003tA-VC@gemulon.postgresql.org>
References: <E1ge1iR-0003tA-VC@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