pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: get_relid_attribute_name is dead, long live get_attname
Date: Mon, 12 Feb 2018 22:35:56 +0000
Message-ID: <E1elMhY-0005Xc-CF@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1elMhY-0005Xc-CF@gemulon.postgresql.org>
Permalink:  ../E1elMhY-0005Xc-CF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1elMhY-0005Xc-CF@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: get_relid_attribute_name is dead, long live get_attname
  In-Reply-To: <E1elMhY-0005Xc-CF@gemulon.postgresql.org>
  References: <E1elMhY-0005Xc-CF@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