Skip to content

Commit 26e67fb

Browse files
author
Maksim Milyutin
committed
Fix incorrect shmem size for module and binary format of number
1 parent 016b4ab commit 26e67fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pg_query_state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ _PG_init(void)
177177
* the postmaster process.) We'll allocate or attach to the shared
178178
* resources in qs_shmem_startup().
179179
*/
180-
RequestAddinShmemSpace(QUEUE_SIZE);
180+
RequestAddinShmemSpace(pg_qs_shmem_size());
181181

182182
/* Register interrupt on custom signal of polling query state */
183183
QueryStatePollReason = RegisterCustomProcSignalHandler(SendQueryState);

pg_query_state.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#include "nodes/pg_list.h"
1717
#include "storage/shm_mq.h"
1818

19-
#define TIMINIG_OFF_WARNING 0b01
20-
#define BUFFERS_OFF_WARNING 0b10
19+
#define TIMINIG_OFF_WARNING 1
20+
#define BUFFERS_OFF_WARNING 2
2121

2222
/*
2323
* Result status on query state request from asked backend

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy