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

From Aleksander Alekseev
Subject Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name
Date
Msg-id CAJ7c6TOBuJYKZ=ZCGMt3OM51RA_4QmbP+NRv41bcjtQyOqq5YA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name  (Yurii Rashkovskii <yrashk@gmail.com>)
Responses Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name  (Yurii Rashkovskii <yrashk@gmail.com>)
List 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
tohave 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



pgsql-hackers by date:

Previous
From: "Imseih (AWS), Sami"
Date:
Subject: Re: Correct the documentation for work_mem
Next
From: Nathan Bossart
Date:
Subject: Re: Move un-parenthesized syntax docs to "compatibility" for few SQL commands