diff options
Diffstat (limited to 'src/backend/storage/ipc/procarray.c')
-rw-r--r-- | src/backend/storage/ipc/procarray.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index a1ebc72d8d5..8eaec0ca6ed 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; |