]> granicus.if.org Git - postgresql/commit
Combine options for RangeVarGetRelidExtended() into a flags argument.
authorAndres Freund <andres@anarazel.de>
Fri, 30 Mar 2018 23:33:42 +0000 (16:33 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 31 Mar 2018 00:05:16 +0000 (17:05 -0700)
commitd87510a524f36a630cfb34cc392e95e959a1b0dc
tree0ec7d1d6409add64be63fc71f491c75a33d4df47
parent9a895462d940c0694042059f90e5f63a0a517ded
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
12 files changed:
src/backend/catalog/namespace.c
src/backend/commands/cluster.c
src/backend/commands/indexcmds.c
src/backend/commands/lockcmds.c
src/backend/commands/matview.c
src/backend/commands/policy.c
src/backend/commands/sequence.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/backend/rewrite/rewriteDefine.c
src/backend/tcop/utility.c
src/include/catalog/namespace.h