pgsql: get_relid_attribute_name is dead, long live get_attname

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: get_relid_attribute_name is dead, long live get_attname
Date: 2018-02-12 22:35:56
Message-ID: E1elMhY-0005Xc-CF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

get_relid_attribute_name is dead, long live get_attname

The modern way is to use a missing_ok argument instead of two separate
almost-identical routines, so do that.

Author: Michaël Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/20180201063212.GE6398@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8237f27b504ff1d1e2da7ae4c81a7f72ea0e0e3e

Modified Files
--------------
contrib/postgres_fdw/deparse.c | 2 +-
contrib/postgres_fdw/postgres_fdw.c | 2 +-
contrib/sepgsql/dml.c | 5 +----
src/backend/catalog/heap.c | 3 ++-
src/backend/catalog/objectaddress.c | 9 +++++----
src/backend/parser/parse_relation.c | 2 +-
src/backend/parser/parse_utilcmd.c | 10 +++++-----
src/backend/utils/adt/ruleutils.c | 26 ++++++++++++++------------
src/backend/utils/cache/lsyscache.c | 31 ++++++++-----------------------
src/backend/utils/cache/relcache.c | 2 +-
src/include/utils/lsyscache.h | 3 +--
11 files changed, 40 insertions(+), 55 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2018-02-13 02:35:50 Re: pgsql: Local partitioned indexes
Previous Message Robert Haas 2018-02-12 19:30:00 pgsql: Fix parallel index builds for dynamic_shared_memory_type=none.