Re: Support worker_spi to execute the function dynamically. - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Support worker_spi to execute the function dynamically.
Date
Msg-id ZMN0qtN/qUOOI5lk@paquier.xyz
Whole thread Raw
In response to Re: Support worker_spi to execute the function dynamically.  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Support worker_spi to execute the function dynamically.
List pgsql-hackers
On Fri, Jul 28, 2023 at 10:47:39AM +0530, Bharath Rupireddy wrote:
> +# check their existence.  Use IDs that do not overlap with the schemas created
> +# by the previous workers.
>
> While using different IDs in tests is a simple fix, -1 for it. I'd
> prefer if worker_spi uses different schema prefixes for static and
> dynamic bg workers to avoid conflicts. We can either look at
> MyBgworkerEntry->bgw_type in worker_spi_main and have schema name as
> '{static, dyamic}_worker_schema_%d', id or pass schema name in
> bgw_extra.

For the sake of a test module, I am not really convinced that there is
any need to go down to such complexity with the names of the schemas
created.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_rewind fails with in-place tablespace
Next
From: Richard Guo
Date:
Subject: Re: Memory consumed by child SpecialJoinInfo in partitionwise join planning