Re: wake up logical workers after ALTER SUBSCRIPTION

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Melih Mutlu <m(dot)melihmutlu(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wake up logical workers after ALTER SUBSCRIPTION
Date: 2023-01-06 00:00:27
Message-ID: 20230106000027.GA581414@nathanxps13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 05, 2023 at 09:29:24AM -0800, Nathan Bossart wrote:
> On Thu, Jan 05, 2023 at 10:57:58AM +0530, Amit Kapila wrote:
>> True, if we want we can use dshash for this.
>
> I'll look into this.

Here is an attempt at using dshash. This is quite a bit cleaner since we
don't need garbage collection or the flag in the worker slots. There is
some extra work required to set up the table, but it doesn't seem too bad.

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v13-0001-wake-up-logical-workers-as-needed-instead-of-rel.patch text/x-diff 8.2 KB
v13-0002-bypass-wal_retrieve_retry_interval-for-logical-w.patch text/x-diff 14.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Fan 2023-01-06 00:07:38 Re: [PATCH] Enable using llvm jitlink as an alternative llvm jit linker of old Rtdyld.
Previous Message Robert Haas 2023-01-05 23:36:15 Re: A varint implementation for PG?