Pessoal,
estou implementando via pgagent para disparar uma function de 1 em 1 minuto,
ocorre que o esse job não está sendo disparado, tentei recriar e gerou o
seguinte sql:

INSERT INTO pgagent.pga_job (jobid, jobjclid, jobname, jobdesc, jobenabled,
jobhostagent)
SELECT <JobId>, jcl.jclid, 'enviaMensagem', '', true, 'localhost'
  FROM pgagent.pga_jobclass jcl WHERE jclname='Data Summarisation';


INSERT INTO pgagent.pga_jobstep (jstid, jstjobid, jstname, jstdesc,
jstenabled, jstkind, jstonerror, jstcode, jstdbname, jstconnstr)
 SELECT <StpId>, <JobId>, 'reenviaMensagem', '', true, 's', 'f', 'select
smsdk.reenviaMensagem();', 'smsdk', '';
INSERT INTO pgagent.pga_schedule (jscid, jscjobid, jscname, jscdesc,
jscminutes, jschours, jscweekdays, jscmonthdays, jscmonths, jscenabled,
jscstart, jscend)
VALUES(<SchId>, <JobId>, 'reenviaMensagem', '',
'{t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t}',
'{t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t}', '{t,t,t,t,t,t,t}',
'{t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t}',
'{t,t,t,t,t,t,t,t,t,t,t,t}', true, '2015-07-01 00:00:00', '2020-07-01
00:00:00');


onde eu acompanho o historico de execução? pois no pgadmin em statistics
esta tudo em branco.



-- 

Douglas Fabiano Specht
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a