Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-hackers@lists.postgresql.org
Cc: Yurii Rashkovskii <yrashk@gmail.com>
Date: 2023-04-24T16:30:19Z
Lists: pgsql-hackers
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



Commits

  1. Increase size of bgw_library_name.