aboutsummaryrefslogtreecommitdiff
path: root/src/include/catalog/objectaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/catalog/objectaccess.h')
-rw-r--r--src/include/catalog/objectaccess.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/include/catalog/objectaccess.h b/src/include/catalog/objectaccess.h
index f4e464e566b..8394401fc5d 100644
--- a/src/include/catalog/objectaccess.h
+++ b/src/include/catalog/objectaccess.h
@@ -54,9 +54,9 @@ typedef enum ObjectAccessType
typedef struct
{
/*
- * This flag informs extensions whether the context of this creation
- * is invoked by user's operations, or not. E.g, it shall be dealt
- * as internal stuff on toast tables or indexes due to type changes.
+ * This flag informs extensions whether the context of this creation is
+ * invoked by user's operations, or not. E.g, it shall be dealt as
+ * internal stuff on toast tables or indexes due to type changes.
*/
bool is_internal;
} ObjectAccessPostCreate;
@@ -79,19 +79,18 @@ typedef struct
typedef struct
{
/*
- * This identifier is used when system catalog takes two IDs
- * to identify a particular tuple of the catalog.
- * It is only used when the caller want to identify an entry
- * of pg_inherits, pg_db_role_setting or pg_user_mapping.
- * Elsewhere, InvalidOid should be set.
+ * This identifier is used when system catalog takes two IDs to identify a
+ * particular tuple of the catalog. It is only used when the caller want
+ * to identify an entry of pg_inherits, pg_db_role_setting or
+ * pg_user_mapping. Elsewhere, InvalidOid should be set.
*/
Oid auxiliary_id;
/*
* If this flag is set, the user hasn't requested that the object be
* altered, but we're doing it anyway for some internal reason.
- * Permissions-checking hooks may want to skip checks if, say, we're
- * alter the constraints of a temporary heap during CLUSTER.
+ * Permissions-checking hooks may want to skip checks if, say, we're alter
+ * the constraints of a temporary heap during CLUSTER.
*/
bool is_internal;
} ObjectAccessPostAlter;
@@ -108,12 +107,11 @@ typedef struct
bool ereport_on_violation;
/*
- * This is, in essence, an out parameter. Core code should
- * initialize this to true, and any extension that wants to deny
- * access should reset it to false. But an extension should be
- * careful never to store a true value here, so that in case there are
- * multiple extensions access is only allowed if all extensions
- * agree.
+ * This is, in essence, an out parameter. Core code should initialize
+ * this to true, and any extension that wants to deny access should reset
+ * it to false. But an extension should be careful never to store a true
+ * value here, so that in case there are multiple extensions access is
+ * only allowed if all extensions agree.
*/
bool result;
} ObjectAccessNamespaceSearch;
@@ -130,11 +128,11 @@ extern PGDLLIMPORT object_access_hook_type object_access_hook;
/* Core code uses these functions to call the hook (see macros below). */
extern void RunObjectPostCreateHook(Oid classId, Oid objectId, int subId,
- bool is_internal);
+ bool is_internal);
extern void RunObjectDropHook(Oid classId, Oid objectId, int subId,
- int dropflags);
+ int dropflags);
extern void RunObjectPostAlterHook(Oid classId, Oid objectId, int subId,
- Oid auxiliaryId, bool is_internal);
+ Oid auxiliaryId, bool is_internal);
extern bool RunNamespaceSearchHook(Oid objectId, bool ereport_on_volation);
extern void RunFunctionExecuteHook(Oid objectId);