Skip to content

Commit 2aeee15

Browse files
Marina Polyakovapashkinelfe
authored andcommitted
PGPRO-5826: fix build for PostgreSQL 14.1
The previous code did not work for PostgreSQL 14.1 because the signature of the function shm_mq_send was changed only in PostgreSQL 15devel which has PG_VERSION_NUM = 150000.
1 parent dd68597 commit 2aeee15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pg_query_state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ SendBgWorkerPids(void)
895895
msg->pids[i++] = current_pid;
896896
}
897897

898-
#if PG_VERSION_NUM <= 140000
898+
#if PG_VERSION_NUM < 150000
899899
shm_mq_send(mqh, msg_len, msg, false);
900900
#else
901901
shm_mq_send(mqh, msg_len, msg, false, true);

signal_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ shm_mq_send_nonblocking(shm_mq_handle *mqh, Size nbytes, const void *data, Size
168168

169169
for(i = 0; i < attempts; i++)
170170
{
171-
#if PG_VERSION_NUM <= 140000
171+
#if PG_VERSION_NUM < 150000
172172
res = shm_mq_send(mqh, nbytes, data, true);
173173
#else
174174
res = shm_mq_send(mqh, nbytes, data, true, true);

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