pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Combine options for RangeVarGetRelidExtended() into a flags argu
Date: Sat, 31 Mar 2018 00:09:41 +0000
Message-ID: <E1f245V-0004Dt-S3@gemulon.postgresql.org> (raw)

Combine options for RangeVarGetRelidExtended() into a flags argument.

A followup patch will add a SKIP_LOCKED option. To avoid introducing
evermore arguments, breaking existing callers each time, introduce a
flags argument. This'll no doubt break a few external users...

Also change the MISSING_OK behaviour so a DEBUG1 debug message is
emitted when a relation is not found.

Author: Nathan Bossart
Reviewed-By: Michael Paquier and Andres Freund
Discussion: https://postgr.es/m/20180306005349.b65whmvj7z6hbe2y@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d87510a524f36a630cfb34cc392e95e959a1b0dc

Modified Files
--------------
src/backend/catalog/namespace.c     | 20 ++++++++++++--------
src/backend/commands/cluster.c      |  2 +-
src/backend/commands/indexcmds.c    |  4 ++--
src/backend/commands/lockcmds.c     |  4 ++--
src/backend/commands/matview.c      |  2 +-
src/backend/commands/policy.c       |  6 +++---
src/backend/commands/sequence.c     |  3 +--
src/backend/commands/tablecmds.c    | 16 ++++++++--------
src/backend/commands/trigger.c      |  2 +-
src/backend/rewrite/rewriteDefine.c |  2 +-
src/backend/tcop/utility.c          |  2 +-
src/include/catalog/namespace.h     | 14 ++++++++++++--
12 files changed, 45 insertions(+), 32 deletions(-)



Message-ID: <E1f245V-0004Dt-S3@gemulon.postgresql.org>
Permalink:  ../E1f245V-0004Dt-S3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f245V-0004Dt-S3@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: andres@anarazel.de
  Subject: Re: pgsql: Combine options for RangeVarGetRelidExtended() into a flags argu
  In-Reply-To: <E1f245V-0004Dt-S3@gemulon.postgresql.org>
  References: <E1f245V-0004Dt-S3@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