aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/indexcmds.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-03-30 16:33:42 -0700
committerAndres Freund <andres@anarazel.de>2018-03-30 17:05:16 -0700
commitd87510a524f36a630cfb34cc392e95e959a1b0dc (patch)
tree0ec7d1d6409add64be63fc71f491c75a33d4df47 /src/backend/commands/indexcmds.c
parent9a895462d940c0694042059f90e5f63a0a517ded (diff)
downloadpostgresql-d87510a524f36a630cfb34cc392e95e959a1b0dc.tar.gz
postgresql-d87510a524f36a630cfb34cc392e95e959a1b0dc.zip
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
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r--src/backend/commands/indexcmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 01859707940..e224b91f53b 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -2091,7 +2091,7 @@ ReindexIndex(RangeVar *indexRelation, int options)
* used here must match the index lock obtained in reindex_index().
*/
indOid = RangeVarGetRelidExtended(indexRelation, AccessExclusiveLock,
- false, false,
+ 0,
RangeVarCallbackForReindexIndex,
(void *) &heapOid);
@@ -2183,7 +2183,7 @@ ReindexTable(RangeVar *relation, int options)
Oid heapOid;
/* The lock level used here should match reindex_relation(). */
- heapOid = RangeVarGetRelidExtended(relation, ShareLock, false, false,
+ heapOid = RangeVarGetRelidExtended(relation, ShareLock, 0,
RangeVarCallbackOwnsTable, NULL);
if (!reindex_relation(heapOid,