pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
hstore-new - hstore-new: cleanup, reconcile with 8.4rc version, fix
2+ messages / 2 participants
[nested] [flat]

* hstore-new - hstore-new: cleanup, reconcile with 8.4rc version, fix
@ 2009-06-20 20:37  User Andrewsn <andrewsn@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: andrewsn@pgfoundry.org @ 2009-06-20 20:37 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------
cleanup, reconcile with 8.4rc version, fix errors in 8.3 support

Modified Files:
--------------
    hstore-new:
        README.hstore-new (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/README.hstore-new?r1=1.2&r2=1....)
        crc32.c (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/crc32.c?r1=1.1.1.1&r2=1.2)
        crc32.h (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/crc32.h?r1=1.1.1.1&r2=1.2)
        hstore-new.sql.in (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore-new.sql.in?r1=1.1.1.1&r...)
        hstore.h (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore.h?r1=1.1.1.1&r2=1.2)
        hstore_gin.c (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore_gin.c?r1=1.1.1.1&r2=1.2)
        hstore_gist.c (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore_gist.c?r1=1.1.1.1&r2=1....)
        hstore_io.c (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore_io.c?r1=1.2&r2=1.3)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: injection_points: Add wait and wakeup of processes
@ 2024-03-04 00:21  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2024-03-04 00:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

injection_points: Add wait and wakeup of processes

This commit adds two features to the in-core module for injection
points:
- A new callback called "wait" that can be attached to an injection
point to make it wait.
- A new SQL function to update the shared state and broadcast the update
using a condition variable.  This function uses an input an injection
point name.

This offers the possibility to stop a process in flight and wake it up
in a controlled manner, which is useful when implementing tests that aim
to trigger scenarios for race conditions (some tests are planned for
integration).  The logic uses a set of counters with a condition
variable to monitor and broadcast the changes.  Up to 8 waits can be
registered in a single run, which should be plenty enough.  Waits can be
monitored in pg_stat_activity, based on the injection point name which
is registered in a custom wait event under the "Extension" category.

The shared memory state used by the module is registered using the DSM
registry, and is optional, so there is no need to load the module with
shared_preload_libraries to be able to use these features.

Author: Michael Paquier
Reviewed-by: Andrey Borodin, Bertrand Drouvot
Discussion: https://postgr.es/m/ZdLuxBk5hGpol91B@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/37b369dc67bc44a3aab5c07e2c0012475efd00f3

Modified Files
--------------
.../injection_points/injection_points--1.0.sql     |  10 ++
.../modules/injection_points/injection_points.c    | 155 +++++++++++++++++++++
src/tools/pgindent/typedefs.list                   |   1 +
3 files changed, 166 insertions(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-03-04 00:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-20 20:37 hstore-new - hstore-new: cleanup, reconcile with 8.4rc version, fix User Andrewsn <andrewsn@pgfoundry.org>
2024-03-04 00:21 pgsql: injection_points: Add wait and wakeup of processes Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox