Re: wake up logical workers after ALTER SUBSCRIPTION
От
Nathan Bossart
Тема
Re: wake up logical workers after ALTER SUBSCRIPTION
Дата
Msg-id
20221218233607.GB1476904@nathanxps13
Ответ на
Re: wake up logical workers after ALTER SUBSCRIPTION (Nathan Bossart)
Список
Дерево обсуждения
wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Thomas Munro <thomas.munro@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Thomas Munro <thomas.munro@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Thomas Munro <thomas.munro@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Melih Mutlu <m.melihmutlu@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Melih Mutlu <m.melihmutlu@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Amit Kapila <amit.kapila16@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
Re: wake up logical workers after ALTER SUBSCRIPTION Tom Lane <tgl@sss.pgh.pa.us>
Re: wake up logical workers after ALTER SUBSCRIPTION Nathan Bossart <nathandbossart@gmail.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: wake up logical workers after ALTER SUBSCRIPTION "Takamichi Osumi (Fujitsu)" <osumi.takamichi@fujitsu.com>
On Thu, Dec 15, 2022 at 02:47:21PM -0800, Nathan Bossart wrote: > I tried setting wal_retrieve_retry_interval to 1ms for all TAP tests > (similar to what was done in 2710ccd), and I noticed that the recovery > tests consistently took much longer. Upon further inspection, it looks > like the same (or a very similar) race condition described in e5d494d's > commit message [0]. With some added debug logs, I see that all of the > callers of MaybeStartWalReceiver() complete before SIGCHLD is processed, so > ServerLoop() waits for a minute before starting the WAL receiver. > > A simple fix is to have DetermineSleepTime() take the WalReceiverRequested > flag into consideration. The attached 0002 patch shortens the sleep time > to 100ms if it looks like we are waiting on a SIGCHLD. I'm not certain > this is the best approach, but it seems to fix the tests. This seems to have somehow broken the archiving tests on Windows, so obviously I owe some better analysis here. I didn't see anything obvious in the logs, but I will continue to dig. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления
От: Justin Pryzby
Дата: