Questions tagged [pgagent]

pgAgent is a job scheduler for PostgreSQL

is a tool for which can be used with .

For details see:

98 questions
2
votes
1 answer

how to schedule a pgagent job through scripts/commandLine

I want to run jobs through PgAgent. I am able to do that by creating a job in PgAgentJob through PgAdmin UI, as described here https://www.pgadmin.org/docs/pgadmin4/dev/pgagent_jobs.html. But I want to use a sql script that can create a PgAgent job…
Murtaza
  • 53
  • 1
  • 5
2
votes
3 answers

How to run a job created via pgagent in Postgres

Created a job using pgagent. Successfully it got created but could not check its status if its running or not. Neither it has performed its specified code which I have given in steps. Verion Used: PostgreSQL 9.6.2 on x86_64-pc-linux-gnu, compiled…
Pooja
  • 327
  • 1
  • 5
  • 20
2
votes
2 answers

pgagent - not running jobs - pgpass file is correct - postgresql

I have Pgagent installed on my Debian OS. Along with Postgresql 9.4. I have checked .pgpass file as this seems to be the most common cause for a job to not run. host port 5432 database = * username = postgres password = xxxx. for both local and the…
Nicoale
  • 503
  • 2
  • 10
  • 23
2
votes
1 answer

PostgreSQL(9.4) Scheduling Agent pgAgent : Couldn't get a connection to the database

I have been trying to schedule a job using pgAgent. But, I am getting the below error: "Couldn't get a connection to the database" Following are the configurations: pgAgent Configuration: Scheduled Job Configuration: Please help to get it…
Kapil Dev
  • 71
  • 5
2
votes
2 answers

pgAgent fails to connect database :'fe_sendauth: no password supplied' (in Windows7)

Help me please.. I have some questions about pgAgent. [Environment] DB : PostgreSQL 9.3 OS : Window 7 OS login ID : someid@mail.com pgAdmin login ID : postgres pgAgent user : postgres pgAgent schema belongs to: postgres DB DB that I'll treat…
arayo
  • 197
  • 2
  • 12
2
votes
1 answer

Setting a job schedule for pgagent in linux through command line

I cannot set a job schedule for pgagent in linux shell. However, I can do that in pgAdmin GUI, but not in command line. Has anybody ever done that in linux command line?
Nurjan
  • 5,889
  • 5
  • 34
  • 54
1
vote
1 answer

ERROR: requierd systempassword for user:postgres

hello at first i want install pageant in pgadmin4 so i want to installed by application stack builder the issues it called here thee issues there no option I see called system password for user I try unstill and install the over again there's no…
eman Feah
  • 23
  • 3
1
vote
0 answers

PostgreSQL 15 Job Schedule Issue Using pgAgent 15 Jobs

I am trying to schedule a PostgreSQL 15 job using pgAgent 15. pgAgent service is running in Windows services. pgAgent schema is stored in database postgres database that is created while installing pgAgent. My stored procedure is created in database…
jeer
  • 29
  • 3
1
vote
0 answers

Scheduling a pgagent job for every alternate friday

I am unbale to find a way to schedule pgagent job for every alternate fridays.Can anybody help me with that ? Below is the code shell script I include it in pgagent job #!/bin/bash #backup directory can be a file server share that the PgAgent…
1
vote
2 answers

why does this DO block have "syntax error near declare" in pgagent?

I have the following code: DROP TABLE IF EXISTS pltest; CREATE TABLE pltest (x jsonb); DO $$ DECLARE startdate text := to_char(current_date - 1, 'YYYYMMDD'); BEGIN EXECUTE format( 'COPY pltest FROM PROGRAM ''curl…
1
vote
1 answer

How can I install pgAgent for PostgreSQL 9.5 on Windows?

Everything I see about pgAgent says that it can be installed using the StackBuilder wizard that runs after installing PostgreSQL. But the StackBuilder wizards I have do not include pgAgent. How can I get pgAgent? A screenshot of my StackBuilder…
ROBERT RICHARDSON
  • 2,077
  • 4
  • 24
  • 57
1
vote
2 answers

Cannot Create or Modify pgpass.conf file in %APPDATA%\postgresql directory

So, I want to backup my database using the pgagent. OS: Windows 10 (64 Bit) I found out that pgagent is not installed in my environment. So, I upgraded my pgAdmin to V4.3 and with that I am trying to install pgagent via Stackbuilder's…
PyNoob
  • 223
  • 1
  • 14
1
vote
0 answers

How to execute pgAgent in Postgressql

My setting is as below. but my agent never works. And I don't know where the log is exported. this is no error even when I run it directly. By the way my I'm using pgAdmin4 Version 4.21. and pgAgent version is 4.0.0.
Jeff_hu
  • 417
  • 4
  • 15
1
vote
0 answers

I am making a job in postgresql using pgagent when I run my job it says coudn't connect to db

I am making a job in postgresql using pgagent when I run my job it says coudn't connect to db. Can any one guide me what is the issue? I tried to find on internet but could not find anything beneficial. I have created my own Database named 'TestDB'…
1
vote
1 answer

permission denied for schema pgagent

I want to create a dedicated role for the devs to access to pgagent from pgadmin. I did that: CREATE ROLE pgagent_dev NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT NOLOGIN; COMMENT ON ROLE pgagent_dev IS 'Role dedicated to Developers access to…
Laurent
  • 23
  • 3