pg_agent jobs - Mailing list pgsql-general

From Giovanni Biscontini
Subject pg_agent jobs
Date
Msg-id CAOM+UfU=WQ+8qwkMEyeUc+ZAEbitHPfCJ8Dhjdgn1ME==+mKhA@mail.gmail.com
Whole thread Raw
Responses Re: pg_agent jobs
List pgsql-general
Hello all members, here's my question: db version 14.5
we have to create a pg_agent job with 2 steps:
1_step execute query: if query result is true or find > 0 records then process next step, else it stops executing job
2_step execute batch command
we tried to seta as 1_step the query:
SELECT EXISTS (SELECT * FROM mytable WHERE someconditions)
but even if it returns false 2_step is always executed.
Need some help, thanks in advance, Giovanni
--

best regards



pgsql-general by date:

Previous
From: Raivo Rebane
Date:
Subject: Re: Right version of jdbc
Next
From: Adrian Klaver
Date:
Subject: Re: pg_agent jobs