mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 19:27:49 +00:00
21 lines
515 B
SQL
21 lines
515 B
SQL
---------------------------------------------------------------------------
|
|
-- Listing
|
|
--
|
|
|
|
-- List current database
|
|
select current_database();
|
|
|
|
-- connect to the DB
|
|
\c signalk
|
|
|
|
-- output display format
|
|
\x on
|
|
|
|
-- Check the number of process pending
|
|
-- Should be 22
|
|
SELECT count(*) as jobs from public.process_queue pq where pq.processed is null;
|
|
--set role scheduler
|
|
SELECT public.run_cron_jobs();
|
|
-- Check any pending job
|
|
SELECT count(*) as any_pending_jobs from public.process_queue pq where pq.processed is null;
|