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

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Yurii Rashkovskii <yrashk(at)gmail(dot)com>
Subject: Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name
Date: 2023-04-24 16:30:19
Message-ID: CAJ7c6TOBuJYKZ=ZCGMt3OM51RA_4QmbP+NRv41bcjtQyOqq5YA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2023-04-24 16:52:21 Re: Move un-parenthesized syntax docs to "compatibility" for few SQL commands
Previous Message Imseih (AWS), Sami 2023-04-24 16:20:08 Re: Correct the documentation for work_mem