summaryrefslogtreecommitdiff
path: root/src/backend/commands/policy.c
diff options
context:
space:
mode:
authorAndres Freund2018-03-30 23:33:42 +0000
committerAndres Freund2018-03-31 00:05:16 +0000
commitd87510a524f36a630cfb34cc392e95e959a1b0dc (patch)
tree0ec7d1d6409add64be63fc71f491c75a33d4df47 /src/backend/commands/policy.c
parent9a895462d940c0694042059f90e5f63a0a517ded (diff)
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/[email protected]
Diffstat (limited to 'src/backend/commands/policy.c')
-rw-r--r--src/backend/commands/policy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/policy.c b/src/backend/commands/policy.c
index cfaf32ccbd7..00841b3b8a0 100644
--- a/src/backend/commands/policy.c
+++ b/src/backend/commands/policy.c
@@ -743,7 +743,7 @@ CreatePolicy(CreatePolicyStmt *stmt)
/* Get id of table. Also handles permissions checks. */
table_id = RangeVarGetRelidExtended(stmt->table, AccessExclusiveLock,
- false, false,
+ 0,
RangeVarCallbackForPolicy,
(void *) stmt);
@@ -915,7 +915,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
/* Get id of table. Also handles permissions checks. */
table_id = RangeVarGetRelidExtended(stmt->table, AccessExclusiveLock,
- false, false,
+ 0,
RangeVarCallbackForPolicy,
(void *) stmt);
@@ -1215,7 +1215,7 @@ rename_policy(RenameStmt *stmt)
/* Get id of table. Also handles permissions checks. */
table_id = RangeVarGetRelidExtended(stmt->relation, AccessExclusiveLock,
- false, false,
+ 0,
RangeVarCallbackForPolicy,
(void *) stmt);