Re: Extend injection_points_attach() to accept a user-defined function

From: Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com>
To: Rahila Syed <rahilasyed90(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extend injection_points_attach() to accept a user-defined function
Date: 2025-10-30 23:35:00
Message-ID: CADzfLwUw7-2Om04xXxvcJ_OrpqiNV9SaBbKJNPJRRoCFegq8yQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2025-10-30 23:48:50 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Joel Jacobson 2025-10-30 23:27:11 Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue