Using PgAgent with SQL commands only?

2025-02-05 Thread Csányi Pál
Hello, I am using Debian 12 operating system and have installed on it postgresql 15.10 (Debian 15.10-0+deb12u1) and pgagent -V PostgreSQL Scheduling Agent Version: 4.2.2 booth installed with apt. PgAgent is running as service: systemctl status pgagent ● pgagent.service - pgAgent for

Re: pgAgent error on Installation

2025-01-14 Thread Daniel Gustafsson
> On 13 Jan 2025, at 20:11, Fakarai, Edgar wrote: > I am encountering a Certification verification error whenever I want to > install pgAgent from stackbuilder on Windows OS. I have attached the > screenshot of the error message. > Thank you. If I take yes it gives me another

Re: pgagent download link missing

2023-10-20 Thread Adrian Klaver
On 10/20/23 04:04, B Liu wrote: Hi there, I tried to download latest pgagent for windows, but there is no link on this page, https://www.pgadmin.org/download/pgagent-windows/ <https://www.pgadmin.org/download/pgagent-windows/> Did I miss anything? Yes the below from the link you

Re: pgagent download link missing

2023-10-20 Thread Daniel Gustafsson
> On 20 Oct 2023, at 13:04, B Liu wrote: > I tried to download latest pgagent for windows, but there is no link on this > page, https://www.pgadmin.org/download/pgagent-windows/ This list is for general questions around postgres and the PostgreSQL project, and might not be monitored b

pgagent download link missing

2023-10-20 Thread B Liu
Hi there, I tried to download latest pgagent for windows, but there is no link on this page, https://www.pgadmin.org/download/pgagent-windows/ Did I miss anything? Thanks Bin

Re: pgAgent for multiple databases in same instance

2021-03-11 Thread Sandeep Saxena
Hi Adam , Thank you for the such a good explaination , actually in same instance dba's are looking to create multiple QA databases and we had jobs in oracle for archiving and some business functionality so I created pgagent extension in multiple databases ,in our application end users can s

Re: pgAgent for multiple databases in same instance

2021-03-10 Thread Adam Brusselback
So my experience isn't with pgagent directly, because I have been using my re-written version of it for ~5 years (but at least at one point I had a pretty darn good understanding from doing that rewrite)...please take this with a grain of salt if I am incorrect on anything. So the agent is

pgAgent for multiple databases in same instance

2021-03-10 Thread Sandeep Saxena
Hi, We are using EDB postgres 12 ,and using pgAgent to schedule db jobs , now we have two databases in the instance but job run only on one of the databases. I created a pgAgent extension on both db's , I can submit a job on both db's too , just it doesnt run on one db until i change

Re: pgagent

2020-11-07 Thread Gabi Draghici
k that most of them are related to pgagent, since they are > coming anyway (I suppose it's about pgadmin's Dashboard). > There is just one that I think it's about "Run now" : > > ... EET postgres postgres [2104]LOG: statement: UPDATE > pgagent.pga_job SET j

Re: pgagent

2020-11-07 Thread Gabi Draghici
I don't think that most of them are related to pgagent, since they are coming anyway (I suppose it's about pgadmin's Dashboard). There is just one that I think it's about "Run now" : ... EET postgres postgres [2104]LOG: statement: UPDATE pgagent.pga_job SET jobne

Re: pgagent

2020-11-06 Thread Adrian Klaver
base postgres  2315  0.0  0.0  64664  5708 pts/2    S    17:57   0:00 /usr/bin/postgresql12-pgagent hostaddr=10.1.0.4 dbname=postgres user=pgagent -s /opt/postgresql/pglog/pg_agent.log postgres  2326  0.0  0.0   8696   820 pts/2    S+   17:57   0:00 grep --color=auto postgresql I've switche

Re: pgagent

2020-11-06 Thread Gabi Draghici
S17:57 0:00 /usr/bin/postgresql12-pgagent hostaddr=10.1.0.4 dbname=postgres user=pgagent -s /opt/postgresql/pglog/pg_agent.log postgres 2326 0.0 0.0 8696 820 pts/2S+ 17:57 0:00 grep --color=auto postgresql I've switched log_statement to 'all' and restarted th

Re: pgagent

2020-11-06 Thread Adrian Klaver
ion (from pgadmin) a couple of times, there is no evidence that the job actually runned ! Nothing in pgagent log, main log or in pgagent.pga_joblog or pgagent.pga_jobsteplog. Is there any way to trace of debug this ? Is the pgagent daemon running? You could crank up the the log_statement to

Re: pgagent

2020-11-06 Thread Gabi Draghici
is no evidence that the job actually runned ! Nothing in pgagent log, main log or in pgagent.pga_joblog or pgagent.pga_jobsteplog. Is there any way to trace of debug this ? 2. Yes, pg_cron also looks good and it's my second option if I can't make 1 to work. Regards, Gabi On Thu, Nov 5,

Re: pgagent

2020-11-05 Thread Adrian Klaver
On 11/5/20 1:07 PM, Gabi Draghici wrote: Hi, I have installed postgresql 12 on sles 15 for some tests. Now I'm interested in some sort of scheduler and from what I've read so far, pgagent should do the job. So I've installed pgagent 4.0. I've added a job (which I can se

pgagent

2020-11-05 Thread Gabi Draghici
Hi, I have installed postgresql 12 on sles 15 for some tests. Now I'm interested in some sort of scheduler and from what I've read so far, pgagent should do the job. So I've installed pgagent 4.0. I've added a job (which I can see in pgagent.pga_job) but everytime I ran it (f

Re: Fwd: changing password pgagent service account

2020-08-14 Thread Diego
yep, or the password does not meet the windows requirements. On 2020-08-13 14:31, Adrian Klaver wrote: On 8/13/20 10:19 AM, Henry Francisco Garcia Cortez wrote: Good morning I need to help I installed pgagent but I want to change password pgagent service account r5w83.png To me it looks

Re: Fwd: changing password pgagent service account

2020-08-13 Thread Adrian Klaver
On 8/13/20 10:19 AM, Henry Francisco Garcia Cortez wrote: Good morning I need to help I installed pgagent but I want to change password pgagent service account r5w83.png To me it looks like you are creating an account rather then changing a password. Also looks like it might be failing on

Fwd: changing password pgagent service account

2020-08-13 Thread Henry Francisco Garcia Cortez
Good morning I need to help I installed pgagent but I want to change password pgagent service account [image: r5w83.png] -- Ing. Henry G. Cortez

Re: Upgrade mode will prevent the installer .... (pgAgent)

2019-10-22 Thread Kris Deugau
NOT perform an upgrade. Since I don't know if images are OK, I'll try to transcribe the message: "Upgrade mode will prevent the installer from modifying the database cluster by loading pgAgent SQL scripts in preparation for upgrading from earlier releases of PostgreSQL using the p

Upgrade mode will prevent the installer .... (pgAgent)

2019-10-22 Thread Boylan, Ross
grade. Since I don't know if images are OK, I'll try to transcribe the message: "Upgrade mode will prevent the installer from modifying the database cluster by loading pgAgent SQL scripts in preparation for upgrading from earlier releases of PostgreSQL using the pg_upgrade tool.&

Stack Builder for pgAgent on Production

2018-12-12 Thread Srinivas
Hello, I am working towards creating scheduled jobs in PostgreSQL database server. During the process of creating jobs, i need to install pgAgent and for this i am using Stack Builder to install the pgAgent component My concern/question here is *Can we use stack builder for pgAgent on

Re: PgAgent on Windows

2018-11-06 Thread Marcio Meneguzzi
cado por Mailtrack <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&;> 06/11/18 14:32:39 Em ter, 6 de nov de 2018 às 14:15, Stéphane Dunand escreveu: > Le 06/11/2018 à 14:36, Marcio Meneguzzi a écrit : > > Hello, > > I´m

Re: PgAgent on Windows

2018-11-06 Thread Stéphane Dunand
Le 06/11/2018 à 14:36, Marcio Meneguzzi a écrit : Hello, I´m trying use pgAgent on windows 10 and Windows Server 2012 R2. My version of PostgreSQL is 9.5.1.14 Install and configure pgAgent with sucess, but, when I try run a Job, status is Failed with a message bellow: *"Couldn't

Re: PgAgent on Windows

2018-11-06 Thread Marcio Meneguzzi
:23:59 Em ter, 6 de nov de 2018 às 11:54, Ron escreveu: > On 11/06/2018 07:36 AM, Marcio Meneguzzi wrote: > > Hello, > > I´m trying use pgAgent on windows 10 and Windows Server 2012 R2. > My version of PostgreSQL is 9.5.1.14 > Install and configure pgAgent with sucess, but, wh

Re: PgAgent on Windows

2018-11-06 Thread Ron
On 11/06/2018 07:36 AM, Marcio Meneguzzi wrote: Hello, I´m trying use pgAgent on windows 10 and Windows Server 2012 R2. My version of PostgreSQL is 9.5.1.14 Install and configure pgAgent with sucess, but, when I try run a Job, status is Failed with a message bellow: *"Couldn't

PgAgent on Windows

2018-11-06 Thread Marcio Meneguzzi
Hello, I´m trying use pgAgent on windows 10 and Windows Server 2012 R2. My version of PostgreSQL is 9.5.1.14 Install and configure pgAgent with sucess, but, when I try run a Job, status is Failed with a message bellow: *"Couldn't create the primary connection (attempt 1): fe_se

pgAgent on Windows

2018-11-05 Thread Marcio Meneguzzi
Hello, I´m trying use pgAgent on windows 10 and Windows Server 2012 R2. My version of PostgreSQL is 9.5.1.14 Install and configure pgAgent with sucess, but, when I try run a Job, status is Failed with a message bellow: *"Couldn't create the primary connection (attempt 1): fe_se

Re: Re: How to install pgAgent on windows for postresql-bigsql-10.5

2018-09-06 Thread Dave Page
/download/windows/ > > > > > > > At 2018-09-06 15:57:30, "Dave Page" wrote: > > Hi > > On Thu, Sep 6, 2018 at 6:23 AM, jimmy wrote: > >> I use PostgreSQL-10.5-1-win64-bigsql.exe to install postgresql database. >> How to install pgAgent

Re:Re: How to install pgAgent on windows for postresql-bigsql-10.5

2018-09-06 Thread jimmy
Is EnterpriseDB opensource and free. Has this database some limits and restrictions ? At 2018-09-06 15:57:30, "Dave Page" wrote: Hi On Thu, Sep 6, 2018 at 6:23 AM, jimmy wrote: I use PostgreSQL-10.5-1-win64-bigsql.exe to install postgresql database. How to install pgAgent

Re: How to install pgAgent on windows for postresql-bigsql-10.5

2018-09-06 Thread Dave Page
Hi On Thu, Sep 6, 2018 at 6:23 AM, jimmy wrote: > I use PostgreSQL-10.5-1-win64-bigsql.exe to install postgresql database. > How to install pgAgent on windows for postresql-bigsql-10.5. > I have been searching some articles to install pgAgent. > But they do not work. > I found th

How to install pgAgent on windows for postresql-bigsql-10.5

2018-09-05 Thread jimmy
I use PostgreSQL-10.5-1-win64-bigsql.exe to install postgresql database. How to install pgAgent on windows for postresql-bigsql-10.5. I have been searching some articles to install pgAgent. But they do not work. I found there has not any version of pgAgent for windows in the website

Re: How can I stop a long run pgAgent job?

2018-06-21 Thread Adam Brusselback
'; It works well with windows, and all the existing pgAgent admin tools work to manage it, it's just a drop in replacement for the agent portion.

Re: How can I stop a long run pgAgent job?

2018-06-21 Thread Fabio Pardi
Hi Shore, Have a look at: https://www.postgresql.org/docs/current/static/functions-admin.html 'pg_terminate_backend' is probably what you are looking for regards, fabio pardi On 21/06/18 11:32, a wrote: > Hi  > > I'm using pgAdmin 4, pgAgent and postgresql 10 on win

How can I stop a long run pgAgent job?

2018-06-21 Thread a
Hi I'm using pgAdmin 4, pgAgent and postgresql 10 on windows server. I tried a job but due to some reasons, its running long time. Is there a way that I can terminate it ?? Thanks Shore

Re: Does pgAgent support chinese, japanese characters?

2018-06-12 Thread a
Thanks a lot for your reply. I tried to set the host/client encoding, however, when I create new tables using Chinese, it reported an encoding error.. also with other queries. May I ask encoding of pgAgent? May it reading from a text file? Or I can use notepad++ to convert and then

Re: Does pgAgent support chinese, japanese characters?

2018-06-12 Thread Tom Lane
"=?ISO-8859-1?B?YQ==?=" <372660...@qq.com> writes: > Hi I'm using pgAgent to set up daily or monthly tasks. > I have tables that with the name of Chinese or Japanese. It runs ok in normal > sql script, but report non-recognizable in pgAgent SQL jobs. First gu

Does pgAgent support chinese, japanese characters?

2018-06-12 Thread a
Hi I'm using pgAgent to set up daily or monthly tasks. I have tables that with the name of Chinese or Japanese. It runs ok in normal sql script, but report non-recognizable in pgAgent SQL jobs. I'm using windows server 2008, pgsql 10, and pgAgent 3.4, may there be a way of

Re: where I can find the error message for pgagent jobs

2018-06-10 Thread Ashesh Vashi
¤???·, > ^" > 7 149 1 "s" 0 "2018-06-11 12:42:05.508192+08" "00:00:00.69604" > > I actually restarted the service and it works. > Yeah - that's probably. You may have changed the pgpass.conf file, which was not loaded again without restart. -- Thanks,

Re: where I can find the error message for pgagent jobs

2018-06-10 Thread a
¤???·" does not exist LINE 4: ?¤???·, ^" 7 149 1 "s" 0 "2018-06-11 12:42:05.508192+08" "00:00:00.69604" I actually restarted the service and it works. But the chinese character is the pain in ass...

Re: where I can find the error message for pgagent jobs

2018-06-10 Thread Ashesh Vashi
t of the table: 'pgagent.pga_jobsteplog'. -- Thanks, Ashesh > > -- Original -- > *From: * "Ashesh Vashi";; > *Send time:* Monday, Jun 11, 2018 12:39 PM > *To:* "a"<372660...@qq.com>; > *Cc:* "pgsql-general"; > *Subjec

Re: where I can find the error message for pgagent jobs

2018-06-10 Thread a
"pgsql-general"; Subject: Re: where I can find the error message for pgagent jobs Please use "pgadmin-supp...@postgresql.org" for any pgAdmin/pgAgent related questions, bugs. On Mon, Jun 11, 2018 at 9:33 AM, a <372660...@qq.com> wrote: Hi all I set up a p

Re: where I can find the error message for pgagent jobs

2018-06-10 Thread Ashesh Vashi
Please use "pgadmin-supp...@postgresql.org" for any pgAdmin/pgAgent related questions, bugs. On Mon, Jun 11, 2018 at 9:33 AM, a <372660...@qq.com> wrote: > Hi all > > I set up a pgagent job, but it says the job was failed. > > But where I can have a look on error

where I can find the error message for pgagent jobs

2018-06-10 Thread a
Hi all I set up a pgagent job, but it says the job was failed. But where I can have a look on error report message?? I'm using pgadmin 4.3, pgagent 3.4, postgresql 10, the platform is windows server 2008 Thank you so much.

pgagent jobs is not running

2018-06-10 Thread a
Hi I'm setting up agent jobs for postgresql. I'm on win server 2008, and postgresql 10. I set up the jobs using pgadmin 4.3. however, the job is not executing, may I ask why??

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-05 Thread Adrian Klaver
On 06/05/2018 07:53 AM, nageswara Bandla wrote: Adrian, I think, it's not problem with pg_hba.conf.  /etc/hosts is configured correctly. psql works fine and is inline with libpq, where as pgagent is not. pgagent still fails when we use hostaddr and host. usr/bin/pgagent_96 -f -l 2 hos

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-05 Thread nageswara Bandla
Adrian, I think, it's not problem with pg_hba.conf. /etc/hosts is configured correctly. psql works fine and is inline with libpq, where as pgagent is not. pgagent still fails when we use hostaddr and host. usr/bin/pgagent_96 -f -l 2 hostaddr=127.0.0.1 host=localhost dbname=linuxpostgresdb

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-04 Thread Adrian Klaver
On 06/04/2018 03:31 PM, nageswara Bandla wrote: I have figured out the issue with pgAgent both in Windows and Linux. PgAgent seems to ignore pgpass.conf/.pgpass whenever it has 127.0.0.1 (127.0.0.1:5432:*:postgres:postgres) throws an error: Could it be that hosts is not set up for

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-04 Thread George Neuner
On 6/4/2018 6:31 PM, nageswara Bandla wrote: I have figured out the issue with pgAgent both in Windows and Linux. PgAgent seems to ignore pgpass.conf/.pgpass whenever it has 127.0.0.1 (127.0.0.1:5432:*:postgres:postgres) throws an error: *DEBUG: Creating DB connection: user=postgres port

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-04 Thread Ron
I've noticed that .pgpass is case sensitive, so am not surprised that it also wouldn't note the difference between 127.0.0.1 and localhost. On 06/04/2018 05:31 PM, nageswara Bandla wrote: I have figured out the issue with pgAgent both in Windows and Linux. PgAgent seems to ignore p

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-04 Thread nageswara Bandla
I have figured out the issue with pgAgent both in Windows and Linux. PgAgent seems to ignore pgpass.conf/.pgpass whenever it has 127.0.0.1 (127.0.0.1:5432:*:postgres:postgres) throws an error: *DEBUG: Creating DB connection: user=postgres port=5432 hostaddr=127.0.0.1 dbname=linuxpostgresdb

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-06-01 Thread nageswara Bandla
gt;> > >> I wouldn't try messing with any of these directories. Instead try > >> setting PGPASSFILE to the full path to your file. > >> > >> > >I have tried all of them, pgagent is not recognizing any of the above > >locations. In fact, I have t

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-31 Thread George Neuner
>> >> depending on your Windows version, policies (if any), and whether the >> executable is 32 or 64 bit. >> >> >> I wouldn't try messing with any of these directories. Instead try >> setting PGPASSFILE to the full path to your file. >> >

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-31 Thread nageswara Bandla
s ... it can't see any user specific ones. I would check if > >> the PGPASSFILE variable is set globally or only in the user account. > >> > >> > >> I don't know anything specifically about running pgagent on Windows, > >> so I can't say wh

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-31 Thread George Neuner
in the user account. >> >> >> I don't know anything specifically about running pgagent on Windows, >> so I can't say why it is giving an error if the docs say it should >> not. >> > > >I am setting the PGPASSFILE in system environment variables. I a

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-31 Thread nageswara Bandla
html) I set > >> PGPASSFILE environment variable to point to pgpass.conf location. Even > >> then, it’s throwing same above error message. I have found out that > >> pgagent is not reading pgpass.conf file when configured under > >> LocalSystem account. &g

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-30 Thread George Neuner
ion. Even >> then, it’s throwing same above error message. I have found out that >> pgagent is not reading pgpass.conf file when configured under >> LocalSystem account. >> >> When I change the properties of the pgagent service to run under my >> login user acc

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-30 Thread Adrian Klaver
ssions on your: %APPDATA%/postgresql/pgpass.co <http://pgpass.co> <http://pgpass.co>nf file. This seems to be confirmed by it working when you run pgagent as the login user. Also: passfile      Specifies the name of the file used

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-30 Thread nageswara Bandla
On Wed, May 30, 2018 at 5:11 AM, Stéphane Dunand wrote: > > Le 29/05/2018 à 21:14, nageswara Bandla a écrit : > > > > The intention of this post is to find out ways to run pgagent without > passing password in its connection string. > > > > *Windows:* > >

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-30 Thread nageswara Bandla
t;> file. This seems to be confirmed by it working when you run pgagent as >> the login user. >> Also: >> passfile >> Specifies the name of the file used to store passwords (see Section >> 33.15). Defaults to ~/.pgpass, or %APPDATA%\postgresql\pgpass.co <

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-30 Thread Stéphane Dunand
Le 29/05/2018 à 21:14, nageswara Bandla a écrit : The intention of this post is to find out ways to run pgagent without passing password in its connection string. *Windows:* I have installed pgagent on windows and configured to run under Local System account. Command:- C:\PostgreSQL

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-29 Thread Adrian Klaver
On 05/29/2018 03:57 PM, nageswara Bandla wrote: #1. Windows: My guess because the LocalSystem user does not have permissions on your: %APPDATA%/postgresql/pgpass.co <http://pgpass.co>nf file. This seems to be confirmed by it working when you run pgagent as the login user. Also: pa

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-29 Thread nageswara Bandla
#1. Windows: My guess because the LocalSystem user does not have permissions on your: %APPDATA%/postgresql/pgpass.conf file. This seems to be confirmed by it working when you run pgagent as the login user. Also: passfile Specifies the name of the file used to store passwords (see Section

Re: Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-29 Thread Adrian Klaver
On 05/29/2018 12:14 PM, nageswara Bandla wrote: The intention of this post is to find out ways to run pgagent without passing password in its connection string. *Windows:* I have installed pgagent on windows and configured to run under Local System account. Command:- C:\PostgreSQL\bigsql

Pgagent is not reading pgpass file either in Windows or Linux.

2018-05-29 Thread nageswara Bandla
The intention of this post is to find out ways to run pgagent without passing password in its connection string. *Windows:* I have installed pgagent on windows and configured to run under Local System account. Command:- C:\PostgreSQL\bigsql\pgagent\bin\pgagent.exe INSTALL pgagent -l 2 -u