Skip to content

Testing a Check in Isolation

You don't need a full collection run to try out a new check:

SELECT * FROM pghf.chk_custom_huge_tables(gen_random_uuid());

This calls the function directly and shows you the exact result it would have produced — status, collected data, and note — which is a handy way to iterate on a check's logic before registering it in the catalog at all.


That's the complete guide to extending pg_health_framework with your own checks. From here, the Reference Guide documents every function's exact parameters, and the Events book covers notifications in full.