Re: Injection points: preloading and runtime arguments - Mailing list pgsql-hackers

From Andrey M. Borodin
Subject Re: Injection points: preloading and runtime arguments
Date
Msg-id B47B55E3-AE03-4F6C-8629-AD07E82E931F@yandex-team.ru
Whole thread Raw
In response to Re: Injection points: preloading and runtime arguments  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers

> On 6 Aug 2024, at 12:47, Michael Paquier <michael@paquier.xyz> wrote:
>
> Hmm.  How about loading injection_points with shared_preload_libraries
> now that it has a _PG_init() thanks to 75534436a477 to take care of
> the initialization you need here?  We could add two hooks to request
> some shmem based on a size and to do the shmem initialization.

SQL initialisation is fine for test purposes. I just considered that I'd better share that doing the same from C code
isnon-trivial. 

Thanks!


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Rajesh Kokkonda
Date:
Subject: Re: Memory growth observed with C++ application consuming libpq.dll on Windows
Next
From: Bertrand Drouvot
Date:
Subject: Fix comments in instr_time.h and remove an unneeded cast to int64