Shmem queue is not flushed if receiver is not yet attached - Mailing list pgsql-hackers

From Pavan Deolasee
Subject Shmem queue is not flushed if receiver is not yet attached
Date
Msg-id CABOikdPkwtLLCTnzzmpSMXo3QZa2yXq0J7Q61ssdLFAJYrOVvQ@mail.gmail.com
Whole thread Raw
Responses Re: Shmem queue is not flushed if receiver is not yet attached
List pgsql-hackers
Hello,

While testing on the current PG master, I noticed a problem between backends communicating over a shared memory queue. I think `shm_mq_sendv()` fails to flush the queue, even if  `force_flush` is set to true, if the receiver is not yet attached to the queue. This simple fix solves the problem for me.

On another note, `shm_mq.h` declares `shm_mq_flush()`, but I don't see it being implemented. Maybe just a leftover from the previous work? Though it seems useful to implement that API.

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB: https://www.enterprisedb..com
Attachment

pgsql-hackers by date:

Previous
From: "osumi.takamichi@fujitsu.com"
Date:
Subject: RE: Skipping logical replication transactions on subscriber side
Next
From: Michael Paquier
Date:
Subject: Re: Out-of-tree certificate interferes ssltest