Questions tagged [pgagent]

pgAgent is a job scheduler for PostgreSQL

is a tool for which can be used with .

For details see:

98 questions
0
votes
0 answers

pgAgent job gives no signs of life

On Windows7 professional (a 64bit Hyper-V virtual machine), Service Pack 1, I'm running PostgreSQL 10, with pgAdmin4 and pgAgent installed. I successfully created a new database, NewDB, the owner is NewUser, with password NewPassd and a new schema…
0
votes
1 answer

How to schedule timing for a JOB in Postgres using pgagent

I have created a job using pgagent which I have scheduled on every 5 mins for that below is the code: DO $$ DECLARE jid integer; scid integer; BEGIN -- Creating a new job INSERT INTO pgagent.pga_job( jobjclid, jobname, jobdesc,…
Pooja
  • 327
  • 1
  • 5
  • 20
0
votes
1 answer

scheduling a stored procedure based on table insertion postgres

In my Postgres database, I have one stored procedure, say sp_1(). Now I have a table called dispatch_details. Insertion to this table happens once in a while. So if data gets updated in this table during daytime, I want to schedule sp_1 at 8pm on…
Ambily
  • 11
  • 2
0
votes
1 answer

Schedule PgAgent Job to run in every one minute every day

I have installed PgAgent a job scheduling agent for PostgreSQL 9.6 + PgAdmin 4(V 1.5) on windows 7. I had successfully created job and run it. However, the problem is that I could not understand its scheduling functionality. I want to run a job in…
M.Sharma
  • 269
  • 6
  • 18
0
votes
1 answer

Manual schedule in PostgreSQL?

I'm starting to use the PostgreSQL now, and I wonder if I can schedule tasks / work (in SQL) to be done by the db without having to use pgAgent. I'm working on a system where administrators need to schedule promotions. For example, from day X to day…
Loa
  • 2,117
  • 3
  • 21
  • 45
0
votes
1 answer

PGAgent : Caught unhandled unknown exception; terminating

The trouble with constantly running jobs on postgre DB, which will never finished. I have tried the following actions to fix it: apt-get update & upgrade(postgresql was updated to latest) /etc/init.d/postgresql restart postgresql.service -…
Viktor M.
  • 4,393
  • 9
  • 40
  • 71
0
votes
0 answers

PostgreSQL pgAgent

I am having trouble setting up pgAgent on my machine. I have a remote CentOS server wherein my PostgreSQL database was installed. I have already executed the pgagent.sql script and was able to create jobs and schedules using sql script. However, the…
marvinv
  • 181
  • 2
  • 9
0
votes
2 answers

How Can I Schedule A PostgreSQL Command Normally Executed from the Terminal?

I'm using the PostgreSQL database in my Ruby on Rails applications. I manually create backups of my databases using the following command. pg_dumpall -c --inserts -f ~/Desktop/pgdumpall_`date +%Y%m%d_%H%M%S`.sql I would like to schedule this…
0
votes
1 answer

Pgagent getting error as Could not get a connection to the database

I installed the "pgAgent 3.2.1-1" tool from "Stack Builder 3.1.0" in Windows 8.1 64 bit with “PostgreSQL 9.1.4-1”, I have created a job: The result of the job execution is Status: Failed Result: 1 Output: Could not get a connection to…
Santhucool
  • 1,656
  • 2
  • 36
  • 92
0
votes
1 answer

Postgresql job scheduler using pgagent giving error with update query

I have created a job scheduler using pgagent in postgresql: What I did is mentioned as screen shots I had created like this to update name in my database field in a certain time. But when I check it is getting failed. The failed status as…
Santhucool
  • 1,656
  • 2
  • 36
  • 92
0
votes
1 answer

why my postgres job stop running?

I create a job to clean the database every day at 01:00. According to statistic run OK from 3 months. But today i realize the database size was very big so i check the jobs and hasn't run for one month. Properties say last run was '10/27/2014' and…
Juan Carlos Oropeza
  • 47,252
  • 12
  • 78
  • 118
0
votes
1 answer

pgAgent scheduled job failed on Windows

I am trying to set up the step with Batch file path on particular time in pgAgent via pgAdmin. But when I run that it is failing and in Step statistics I got this Output C:\Windows\system32>C:\postgresql\run.bat 'psql' is not recognized as an…
Dyapa Srikanth
  • 1,231
  • 2
  • 22
  • 60
0
votes
2 answers

PgAgent (on windows) doesn't run job

Note: This is a new installation of pgAgent following tutorials and other info that I found over the web. Note2: Server pgAgent is running and (apparently) without errors. After configuring the job it never start to run, nor manually or…
Luke
  • 477
  • 1
  • 5
  • 13
0
votes
1 answer

pg_agent not executing the query

I am trying to create a task job with pg_agent. I have created a new job, schedule, and step. They are all enabled. In my step, I have such a query to get run: DELETE FROM "ID: 889197824 CH: 0006 Messdaten" t USING ( SELECT "Zeit" FROM "ID:…
mctuna
  • 809
  • 3
  • 19
  • 38
0
votes
1 answer

pgagent on windows - Couldn't get a connection to the database

Hi I need a little help to get pgagent running on a windows 2008 with postgres 9.2.1 (ipv4 & ipv6) I'm logged into the server (remote desktop) and trying to run a job. If i check the output from the job: SELECT j.jobname, s.jstname, l.jslstart,…
dk_nls
  • 13
  • 1
  • 5