> It is fine as per current usage of WaitEventSet API's, however, > Robert's point is valid that user is not obliged to call > ModifyWaitEvent before WaitEventSetWait. Imagine a case where some > new user of this API is calling WaitEventSetWait repeatedly without > calling ModifyWaitEvent.
Oops! I never thought this scenario, yes there can be a case where an external module like FDW may call WaitEventSetWait() and in such case the fix provided in v1 patch may not work. So, yes we may have to reset the event in WaitEventSetWaitBlock(). I am extremely extremely sorry for a noise. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers