summaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc/procarray.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-20 17:32:01 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-20 17:32:01 -0500
commit33a3b03d636b529b27f869e332b6344d52635331 (patch)
treec5227d0a7013626e9fa9c0973075de224bd4fa33 /src/backend/storage/ipc/procarray.c
parentc110eff1324f5c882c737ad988191ed4a54c4936 (diff)
downloadpostgresql-33a3b03d636b529b27f869e332b6344d52635331.tar.gz
Use FLEXIBLE_ARRAY_MEMBER in some more places.
Fix a batch of structs that are only visible within individual .c files. Michael Paquier
Diffstat (limited to 'src/backend/storage/ipc/procarray.c')
-rw-r--r--src/backend/storage/ipc/procarray.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c
index a1ebc72d8d..8eaec0ca6e 100644
--- a/src/backend/storage/ipc/procarray.c
+++ b/src/backend/storage/ipc/procarray.c
@@ -90,11 +90,8 @@ typedef struct ProcArrayStruct
/* oldest catalog xmin of any replication slot */
TransactionId replication_slot_catalog_xmin;
- /*
- * We declare pgprocnos[] as 1 entry because C wants a fixed-size array,
- * but actually it is maxProcs entries long.
- */
- int pgprocnos[1]; /* VARIABLE LENGTH ARRAY */
+ /* indexes into allPgXact[], has PROCARRAY_MAXPROCS entries */
+ int pgprocnos[FLEXIBLE_ARRAY_MEMBER];
} ProcArrayStruct;
static ProcArrayStruct *procArray;