Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name - Mailing list pgsql-hackers

From Yurii Rashkovskii
Subject Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name
Date
Msg-id CA+RLCQyTvhgMeGcR-JSQLtz9kRTz8LmXR=Jy_38Rjd3nmCEBRA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name
List pgsql-hackers
You're absolutely right. Here's v3.


On Mon, Apr 24, 2023 at 6:30 PM Aleksander Alekseev <aleksander@timescale.com> wrote:
Hi,

> This is a very good catch and a suggestion. I've slightly reworked the patch, and I also made this static assertion to have less indirection and, therefore, make it easier to understand the premise.
> Version 2 is attached.

```
sizeof((BackgroundWorker *)NULL)->bgw_library_name
```

I'm pretty confident something went wrong with the parentheses in v2.


--
Best regards,
Aleksander Alekseev


--
Y.

Attachment

pgsql-hackers by date:

Previous
From: Mat Arye
Date:
Subject: Re: [PATCH] Support % wildcard in extension upgrade filenames
Next
From: "Regina Obe"
Date:
Subject: RE: [PATCH] Support % wildcard in extension upgrade filenames