| From: | "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz> |
| Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Injection points: preloading and runtime arguments |
| Date: | 2024-08-06 08:40:59 |
| Message-ID: | B47B55E3-AE03-4F6C-8629-AD07E82E931F@yandex-team.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On 6 Aug 2024, at 12:47, Michael Paquier <michael(at)paquier(dot)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 is non-trivial.
Thanks!
Best regards, Andrey Borodin.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bertrand Drouvot | 2024-08-06 08:54:23 | Fix comments in instr_time.h and remove an unneeded cast to int64 |
| Previous Message | Rajesh Kokkonda | 2024-08-06 08:36:18 | Re: Memory growth observed with C++ application consuming libpq.dll on Windows |