mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 13:07:38 +08:00
Some more FLEXIBLE_ARRAY_MEMBER fixes.
This commit is contained in:
@ -56,7 +56,12 @@ typedef struct BrinMetaPageData
|
||||
/* Definitions for revmap pages */
|
||||
typedef struct RevmapContents
|
||||
{
|
||||
ItemPointerData rm_tids[1]; /* really REVMAP_PAGE_MAXITEMS */
|
||||
/*
|
||||
* This array will fill all available space on the page. It should be
|
||||
* declared [FLEXIBLE_ARRAY_MEMBER], but for some reason you can't do that
|
||||
* in an otherwise-empty struct.
|
||||
*/
|
||||
ItemPointerData rm_tids[1];
|
||||
} RevmapContents;
|
||||
|
||||
#define REVMAP_CONTENT_SIZE \
|
||||
|
||||
@ -130,6 +130,10 @@ typedef struct ReplicationSlot
|
||||
*/
|
||||
typedef struct ReplicationSlotCtlData
|
||||
{
|
||||
/*
|
||||
* This array should be declared [FLEXIBLE_ARRAY_MEMBER], but for some
|
||||
* reason you can't do that in an otherwise-empty struct.
|
||||
*/
|
||||
ReplicationSlot replication_slots[1];
|
||||
} ReplicationSlotCtlData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user