Re: Injection points: preloading and runtime arguments

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-02 16:03:58
Message-ID: FDA1B5E9-5C29-46B8-BEB9-09546343ED2C@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 18 Jul 2024, at 03:55, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> If there is anything else you would like to see adjusted in this area,
> please let me know.

I’ve tried to switch my multixact test to new INJECTION_POINT_CACHED… and it does not work for me. Could you please take a look?

2024-08-02 18:52:32.244 MSK [53155] 001_multixact.pl LOG: statement: select test_create_multixact();
TRAP: failed Assert("CritSectionCount == 0 || (context)->allowInCritSection"), File: "mcxt.c", Line: 1186, PID: 53155
0 postgres 0x00000001031212f0 ExceptionalCondition + 236
1 postgres 0x000000010317a01c MemoryContextAlloc + 240
2 postgres 0x0000000102e66158 dsm_create_descriptor + 80
3 postgres 0x0000000102e66474 dsm_attach + 416
4 postgres 0x000000010316c264 dsa_attach + 24
5 postgres 0x0000000102e69994 init_dsm_registry + 256
6 postgres 0x0000000102e6965c GetNamedDSMSegment + 492
7 injection_points.dylib 0x000000010388f2cc injection_init_shmem + 68
8 injection_points.dylib 0x000000010388efbc injection_wait + 72
9 postgres 0x00000001031606bc InjectionPointCached + 72
10 postgres 0x00000001028ffc70 MultiXactIdCreateFromMembers + 360
11 postgres 0x00000001028ffac8 MultiXactIdCreate + 344
12 test_slru.dylib 0x000000010376fa04 test_create_multixact + 52

The test works fine with SQL interface “select injection_points_load('get-new-multixact-id');”.
Thanks!

Best regards, Andrey Borodin.

Attachment Content-Type Size
vAug2-0001-Add-multixact-CV-sleep-test.patch application/octet-stream 9.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-08-02 16:04:24 Re: On disable_cost
Previous Message Matthias van de Meent 2024-08-02 15:37:17 Re: Parallel CREATE INDEX for GIN indexes