Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/jsonapi.h17
-rw-r--r--src/include/utils/partcache.h2
-rw-r--r--src/include/utils/portal.h2
-rw-r--r--src/include/utils/rel.h4
-rw-r--r--src/include/utils/resowner_private.h4
-rw-r--r--src/include/utils/tuplesort.h2
6 files changed, 16 insertions, 15 deletions
diff --git a/src/include/utils/jsonapi.h b/src/include/utils/jsonapi.h
index b28201c2bc6..6b483a15a66 100644
--- a/src/include/utils/jsonapi.h
+++ b/src/include/utils/jsonapi.h
@@ -136,12 +136,13 @@ extern bool IsValidJsonNumber(const char *str, int len);
* Flag types for iterate_json(b)_values to specify what elements from a
* json(b) document we want to iterate.
*/
-typedef enum JsonToIndex {
- jtiKey = 0x01,
- jtiString = 0x02,
- jtiNumeric = 0x04,
- jtiBool = 0x08,
- jtiAll = jtiKey | jtiString | jtiNumeric | jtiBool
+typedef enum JsonToIndex
+{
+ jtiKey = 0x01,
+ jtiString = 0x02,
+ jtiNumeric = 0x04,
+ jtiBool = 0x08,
+ jtiAll = jtiKey | jtiString | jtiNumeric | jtiBool
} JsonToIndex;
/* an action that will be applied to each value in iterate_json(b)_vaues functions */
@@ -152,9 +153,9 @@ typedef text *(*JsonTransformStringValuesAction) (void *state, char *elem_value,
extern uint32 parse_jsonb_index_flags(Jsonb *jb);
extern void iterate_jsonb_values(Jsonb *jb, uint32 flags, void *state,
- JsonIterateStringValuesAction action);
+ JsonIterateStringValuesAction action);
extern void iterate_json_values(text *json, uint32 flags, void *action_state,
- JsonIterateStringValuesAction action);
+ JsonIterateStringValuesAction action);
extern Jsonb *transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
JsonTransformStringValuesAction transform_action);
extern text *transform_json_string_values(text *json, void *action_state,
diff --git a/src/include/utils/partcache.h b/src/include/utils/partcache.h
index c1d029fdb31..873c60fafd2 100644
--- a/src/include/utils/partcache.h
+++ b/src/include/utils/partcache.h
@@ -44,7 +44,7 @@ typedef struct PartitionKeyData
bool *parttypbyval;
char *parttypalign;
Oid *parttypcoll;
-} PartitionKeyData;
+} PartitionKeyData;
extern void RelationBuildPartitionKey(Relation relation);
extern void RelationBuildPartitionDesc(Relation rel);
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h
index b4a259dcf8f..e4929b936e5 100644
--- a/src/include/utils/portal.h
+++ b/src/include/utils/portal.h
@@ -116,7 +116,7 @@ typedef struct PortalData
/* Bookkeeping data */
const char *name; /* portal's name */
const char *prepStmtName; /* source prepared statement (NULL if none) */
- MemoryContext portalContext;/* subsidiary memory for portal */
+ MemoryContext portalContext; /* subsidiary memory for portal */
ResourceOwner resowner; /* resources owned by portal */
void (*cleanup) (Portal portal); /* cleanup hook */
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h
index 1d0461d2957..c97f9d1b43e 100644
--- a/src/include/utils/rel.h
+++ b/src/include/utils/rel.h
@@ -116,7 +116,7 @@ typedef struct RelationData
Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */
Bitmapset *rd_pkattr; /* cols included in primary key */
Bitmapset *rd_idattr; /* included in replica identity index */
- Bitmapset *rd_projidx; /* Oids of projection indexes */
+ Bitmapset *rd_projidx; /* Oids of projection indexes */
PublicationActions *rd_pubactions; /* publication actions */
@@ -223,7 +223,7 @@ typedef struct ForeignKeyCacheInfo
typedef struct GenericIndexOpts
{
int32 vl_len_;
- bool recheck_on_update;
+ bool recheck_on_update;
} GenericIndexOpts;
/*
diff --git a/src/include/utils/resowner_private.h b/src/include/utils/resowner_private.h
index 44dc99eb267..a6e8eb71abb 100644
--- a/src/include/utils/resowner_private.h
+++ b/src/include/utils/resowner_private.h
@@ -91,8 +91,8 @@ extern void ResourceOwnerForgetDSM(ResourceOwner owner,
/* support for JITContext management */
extern void ResourceOwnerEnlargeJIT(ResourceOwner owner);
extern void ResourceOwnerRememberJIT(ResourceOwner owner,
- Datum handle);
+ Datum handle);
extern void ResourceOwnerForgetJIT(ResourceOwner owner,
- Datum handle);
+ Datum handle);
#endif /* RESOWNER_PRIVATE_H */
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h
index d2e6754f043..32908b66251 100644
--- a/src/include/utils/tuplesort.h
+++ b/src/include/utils/tuplesort.h
@@ -54,7 +54,7 @@ typedef struct SortCoordinateData
/* Private opaque state (points to shared memory) */
Sharedsort *sharedsort;
-} SortCoordinateData;
+} SortCoordinateData;
typedef struct SortCoordinateData *SortCoordinate;