Re: Extend injection_points_attach() to accept a user-defined function - Mailing list pgsql-hackers

From Mihail Nikalayeu
Subject Re: Extend injection_points_attach() to accept a user-defined function
Date
Msg-id CADzfLwUw7-2Om04xXxvcJ_OrpqiNV9SaBbKJNPJRRoCFegq8yQ@mail.gmail.com
Whole thread Raw
In response to Re: Extend injection_points_attach() to accept a user-defined function  (Rahila Syed <rahilasyed90@gmail.com>)
List pgsql-hackers
Hello!

I thought it may help me to implement some kind of notice+wait
required for [1] in order to stabilize the tests.

Is it possible to do something like this in the attached function?

    RAISE NOTICE 'going to wait';
    SELECT injection_points_run(some_point_with_wait"); -- wait called
inside injection point handler

Also, I think it is a good idea to add some tests to injection_points.sql.

Best regards,
Mikhail.

[1]:
https://www.postgresql.org/message-id/flat/CADzfLwWRVj7wDy4Qj3CJTuWy6fvv9TTDBTHsUjC7F1SAN0LpeA%40mail.gmail.com#52c7659bf9c8c5ff484e3b470a4cfb8a



pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue
Next
From: Alexander Korotkov
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands