pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Gabi Draghici <gabi.draghici@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pgagent
Date: Fri, 6 Nov 2020 08:41:48 -0800
Message-ID: <2d13573c-492a-588c-9c70-76da31f31943@aklaver.com> (raw)
In-Reply-To: <CAGUZLHzvJBPmrKJraaZi2YDjPUXbOF70NMx1vbkVrnmxkqny_A@mail.gmail.com>
References: <CAGUZLHy-iqVYwb1KVJjYxMcJBEFeagjd=g0_GpsdKumRS6M_iQ@mail.gmail.com>
	<e594b31f-3af4-cf9a-64e4-ddcb2c15b4b3@aklaver.com>
	<CAGUZLHwHc0RToVSVmK+14OetLMStVX2BXb=aut+idxiWr18iVg@mail.gmail.com>
	<233ea395-0a07-d186-a725-ff3e080d5d5f@aklaver.com>
	<CAGUZLHzvJBPmrKJraaZi2YDjPUXbOF70NMx1vbkVrnmxkqny_A@mail.gmail.com>

On 11/6/20 8:12 AM, Gabi Draghici wrote:
> 
> It't not a daemon yet (I started manually) but yes, it's running :
> 
> postgres@dbdocs:~> ps aux | grep postgresql
> postgres  2093  0.0  0.3 8720088 218280 ?      Ss   17:54   0:00 
> /usr/lib/postgresql12/bin/postgres -D /opt/postgresql/database
> 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 switched log_statement to 'all' and restarted the DB. All I see 
> it's a bunch of statements like these :
> 
> 2020-11-06 18:07:03.869 EET postgres pgagent [2316]LOG:  statement: 
> SELECT J.jobid   FROM pgagent.pga_job J  WHERE jobenabled    AND 
> jobagentid IS NULL    AND jobnextrun <= now()    AND (jobhostagent = '' 
> OR jobhostagent = 'dbdocs-prd') ORDER BY jobnextrun
> 2020-11-06 18:07:04.466 EET postgres postgres [2104]LOG:  statement: 
> /*pga4dash*/

The above is from when you click 'Run now'?

> 
> Regards,
> Gabi
> 
> 
> 
> 
> 
> 
> 



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (20+ messages)  latest in thread

Message-ID: <2d13573c-492a-588c-9c70-76da31f31943@aklaver.com>
Permalink:  ../2d13573c-492a-588c-9c70-76da31f31943@aklaver.com/
Also on:    postgresql.org/message-id/2d13573c-492a-588c-9c70-76da31f31943@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, gabi.draghici@gmail.com
  Subject: Re: pgagent
  In-Reply-To: <2d13573c-492a-588c-9c70-76da31f31943@aklaver.com>
  References: <CAGUZLHy-iqVYwb1KVJjYxMcJBEFeagjd=g0_GpsdKumRS6M_iQ@mail.gmail.com> <e594b31f-3af4-cf9a-64e4-ddcb2c15b4b3@aklaver.com> <CAGUZLHwHc0RToVSVmK+14OetLMStVX2BXb=aut+idxiWr18iVg@mail.gmail.com> <233ea395-0a07-d186-a725-ff3e080d5d5f@aklaver.com> <CAGUZLHzvJBPmrKJraaZi2YDjPUXbOF70NMx1vbkVrnmxkqny_A@mail.gmail.com> <2d13573c-492a-588c-9c70-76da31f31943@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox