File tree 5 files changed +12
-20
lines changed
5 files changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -396,10 +396,10 @@ typedef struct NotificationList
396
396
397
397
#define MIN_HASHABLE_NOTIFIES 16 /* threshold to build hashtab */
398
398
399
- typedef struct NotificationHash
399
+ struct NotificationHash
400
400
{
401
401
Notification * event ; /* => the actual Notification struct */
402
- } NotificationHash ;
402
+ };
403
403
404
404
static NotificationList * pendingNotifies = NULL ;
405
405
@@ -2299,7 +2299,7 @@ AddEventToPendingNotifies(Notification *n)
2299
2299
2300
2300
/* Create the hash table */
2301
2301
hash_ctl .keysize = sizeof (Notification * );
2302
- hash_ctl .entrysize = sizeof (NotificationHash );
2302
+ hash_ctl .entrysize = sizeof (struct NotificationHash );
2303
2303
hash_ctl .hash = notification_hash ;
2304
2304
hash_ctl .match = notification_match ;
2305
2305
hash_ctl .hcxt = CurTransactionContext ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ StaticAssertDecl(RESOWNER_HASH_MAX_ITEMS(RESOWNER_HASH_INIT_SIZE) >= RESOWNER_AR
107
107
/*
108
108
* ResourceOwner objects look like this
109
109
*/
110
- typedef struct ResourceOwnerData
110
+ struct ResourceOwnerData
111
111
{
112
112
ResourceOwner parent ; /* NULL if no parent (toplevel owner) */
113
113
ResourceOwner firstchild ; /* head of linked list of children */
@@ -155,7 +155,7 @@ typedef struct ResourceOwnerData
155
155
156
156
/* The local locks cache. */
157
157
LOCALLOCK * locks [MAX_RESOWNER_LOCKS ]; /* list of owned locks */
158
- } ResourceOwnerData ;
158
+ };
159
159
160
160
161
161
/*****************************************************************************
@@ -415,7 +415,7 @@ ResourceOwnerCreate(ResourceOwner parent, const char *name)
415
415
ResourceOwner owner ;
416
416
417
417
owner = (ResourceOwner ) MemoryContextAllocZero (TopMemoryContext ,
418
- sizeof (ResourceOwnerData ));
418
+ sizeof (struct ResourceOwnerData ));
419
419
owner -> name = name ;
420
420
421
421
if (parent )
Original file line number Diff line number Diff line change 19
19
20
20
21
21
/* Sync methods */
22
- typedef enum WalSyncMethod
22
+ enum WalSyncMethod
23
23
{
24
24
WAL_SYNC_METHOD_FSYNC = 0 ,
25
25
WAL_SYNC_METHOD_FDATASYNC ,
26
26
WAL_SYNC_METHOD_OPEN , /* for O_SYNC */
27
27
WAL_SYNC_METHOD_FSYNC_WRITETHROUGH ,
28
28
WAL_SYNC_METHOD_OPEN_DSYNC /* for O_DSYNC */
29
- } WalSyncMethod ;
29
+ };
30
30
extern PGDLLIMPORT int wal_sync_method ;
31
31
32
32
extern PGDLLIMPORT XLogRecPtr ProcLastRecPtr ;
Original file line number Diff line number Diff line change @@ -107,14 +107,10 @@ typedef struct BufferManagerRelation
107
107
#define BMR_REL (p_rel ) ((BufferManagerRelation){.rel = p_rel})
108
108
#define BMR_SMGR (p_smgr , p_relpersistence ) ((BufferManagerRelation){.smgr = p_smgr, .relpersistence = p_relpersistence})
109
109
110
- typedef enum ReadBuffersFlags
111
- {
112
- /* Zero out page if reading fails. */
113
- READ_BUFFERS_ZERO_ON_ERROR = (1 << 0 ),
114
-
115
- /* Call smgrprefetch() if I/O necessary. */
116
- READ_BUFFERS_ISSUE_ADVICE = (1 << 1 ),
117
- } ReadBuffersFlags ;
110
+ /* Zero out page if reading fails. */
111
+ #define READ_BUFFERS_ZERO_ON_ERROR (1 << 0)
112
+ /* Call smgrprefetch() if I/O necessary. */
113
+ #define READ_BUFFERS_ISSUE_ADVICE (1 << 1)
118
114
119
115
struct ReadBuffersOperation
120
116
{
Original file line number Diff line number Diff line change @@ -1692,7 +1692,6 @@ Node
1692
1692
NodeTag
1693
1693
NonEmptyRange
1694
1694
Notification
1695
- NotificationHash
1696
1695
NotificationList
1697
1696
NotifyStmt
1698
1697
Nsrt
@@ -2326,7 +2325,6 @@ ReInitializeDSMForeignScan_function
2326
2325
ReScanForeignScan_function
2327
2326
ReadBufPtrType
2328
2327
ReadBufferMode
2329
- ReadBuffersFlags
2330
2328
ReadBuffersOperation
2331
2329
ReadBytePtrType
2332
2330
ReadExtraTocPtrType
@@ -2443,7 +2441,6 @@ ReservoirState
2443
2441
ReservoirStateData
2444
2442
ResourceElem
2445
2443
ResourceOwner
2446
- ResourceOwnerData
2447
2444
ResourceOwnerDesc
2448
2445
ResourceReleaseCallback
2449
2446
ResourceReleaseCallbackItem
@@ -3127,7 +3124,6 @@ WalSndState
3127
3124
WalSummarizerData
3128
3125
WalSummaryFile
3129
3126
WalSummaryIO
3130
- WalSyncMethod
3131
3127
WalTimeSample
3132
3128
WalUsage
3133
3129
WalWriteMethod
You can’t perform that action at this time.
0 commit comments