Re: [patch] Imporve pqmq

2024-08-13 Thread Xiaoran Wang
Robert Haas 于2024年8月13日周二 00:28写道: > On Thu, Aug 8, 2024 at 10:27 PM Xiaoran Wang > wrote: > > > Add function 'pq_leave_shm_mq' to allow the process to go > > > back to the previous pq environment. > > > > >.In the code as it currently exists, a parallel worker never has a > > >.

Re: [patch] Imporve pqmq

2024-08-12 Thread Robert Haas
On Thu, Aug 8, 2024 at 10:27 PM Xiaoran Wang wrote: > > Add function 'pq_leave_shm_mq' to allow the process to go > > back to the previous pq environment. > > >.In the code as it currently exists, a parallel worker never has a > >.connected client, and it talks to a shm_mq instead.

Re: [patch] Imporve pqmq

2024-08-08 Thread Xiaoran Wang
Robert Haas 03:24 (6小时前) 发送至 我、 pgsql-hackers On Wed, Aug 7, 2024 at 11:24 PM Xiaoran Wang wrote: > When I use the 'pqmq' recently, I found some issues, just fix them. > > Allow the param 'dsm_segment *seg' to be NULL in function > 'pq_redirect_to_shm_mq'. As sometimes the shm_mq is

Re: [patch] Imporve pqmq

2024-08-08 Thread Robert Haas
On Wed, Aug 7, 2024 at 11:24 PM Xiaoran Wang wrote: > When I use the 'pqmq' recently, I found some issues, just fix them. > > Allow the param 'dsm_segment *seg' to be NULL in function > 'pq_redirect_to_shm_mq'. As sometimes the shm_mq is created > in shared memory instead of DSM.

[patch] Imporve pqmq

2024-08-07 Thread Xiaoran Wang
Hi, When I use the 'pqmq' recently, I found some issues, just fix them. Allow the param 'dsm_segment *seg' to be NULL in function 'pq_redirect_to_shm_mq'. As sometimes the shm_mq is created in shared memory instead of DSM. Add function 'pq_leave_shm_mq' to allow the process t