pgsql: Revise BuildIndexValueDescription to simplify it

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revise BuildIndexValueDescription to simplify it
Date: 2018-07-17 00:34:46
Message-ID: E1ffDx0-0002C1-58@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revise BuildIndexValueDescription to simplify it

Getting a pg_index tuple from syscache when the open index relation is
available is pointless -- just use the one from relcache.

Noticed while reviewing code for cb9db2ab0674.

No backpatch.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1c04d4beea8a7f0f5fb667512025aada14c5be67

Modified Files
--------------
src/backend/access/index/genam.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-07-17 04:19:49 Re: Refactor documentation for wait events (Was: pgsql: Add wait event for fsync of WAL segments)
Previous Message Alvaro Herrera 2018-07-17 00:02:58 pgsql: Fix ALTER TABLE...SET STATS error message for included columns