Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-03-11 Thread Mats Kindahl
On Sun, Mar 2, 2025 at 2:26 PM Mats Kindahl wrote: > On Sat, Jan 18, 2025 at 8:44 PM Mats Kindahl wrote: > >> On Tue, Jan 14, 2025 at 4:19 PM Aleksander Alekseev < >> aleksan...@timescale.com> wrote: >> >>> IMO the best solution would be re-submitting all the patches to this >>> thread. Also ple

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-03-02 Thread Mats Kindahl
On Sat, Jan 18, 2025 at 8:44 PM Mats Kindahl wrote: > On Tue, Jan 14, 2025 at 4:19 PM Aleksander Alekseev < > aleksan...@timescale.com> wrote: > >> IMO the best solution would be re-submitting all the patches to this >> thread. Also please make sure the patchset is registered on the >> nearest op

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-19 Thread Mats Kindahl
On Sun, Jan 19, 2025 at 2:10 AM Michael Paquier wrote: > On Sat, Jan 18, 2025 at 08:44:00PM +0100, Mats Kindahl wrote: > > For PostgreSQL 16, Peter extended the palloc()/pg_malloc() interface in > > commit 2016055a92f to provide more type-safety, but these functions are > not > > widely used. Thi

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-18 Thread Michael Paquier
On Sat, Jan 18, 2025 at 08:44:00PM +0100, Mats Kindahl wrote: > For PostgreSQL 16, Peter extended the palloc()/pg_malloc() interface in > commit 2016055a92f to provide more type-safety, but these functions are not > widely used. This semantic patch captures and replaces all uses of palloc() > where

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-14 Thread Aleksander Alekseev
Hi, > My apologies, I thought this would make it easier to discuss and review the > code. I will send a single email in the future. > > Should I resend this as a single email with all the patches? IMO the best solution would be re-submitting all the patches to this thread. Also please make sure

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-08 Thread Mats Kindahl
On Wed, Jan 8, 2025 at 11:42 AM Andrew Dunstan wrote: > > On 2025-01-07 Tu 2:44 PM, Mats Kindahl wrote: > > I got some time over during the holidays, so I spent some of it > > doing something I've been thinking about for a while. > > > > For those of you that are not aware of it: Coccinelle is a

Re: Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-08 Thread Andrew Dunstan
On 2025-01-07 Tu 2:44 PM, Mats Kindahl wrote: I got some time over during the holidays, so I spent some of it doing something I've been thinking about for a while. For those of you that are not aware of it: Coccinelle is a tool for pattern matching and text transformation for C code and can

Coccinelle for PostgreSQL development [1/N]: coccicheck.py

2025-01-07 Thread Mats Kindahl
I got some time over during the holidays, so I spent some of it doing something I've been thinking about for a while. For those of you that are not aware of it: Coccinelle is a tool for pattern matching and text transformation for C code and can be used for detection of problematic programming pat