pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: FOUTE K. Jaurès <jauresfoute@gmail.com>
Cc: Fabricio Pedroso Jorge <fpjbito@gmail.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: PG_Cron - Error Message Connection failed
Date: Sun, 14 May 2023 13:12:27 -0700
Message-ID: <c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@aklaver.com> (raw)
In-Reply-To: <CAHQ1jfcYFTOmE+zCJ1EWLnZp9D=ajEy6HWRzOF5nXuqVVAvJfw@mail.gmail.com>
References: <CAHQ1jffWF7Y8c1X7EK3JvbLJgw1GEcVk0uPa3+0CJo4h8PFHVw@mail.gmail.com>
	<CAJDTwK1M9XCP2dGA_Vq0Cpbi92VbUSxFypMU0esiJ6iVLe6y9w@mail.gmail.com>
	<CAHQ1jffs1+Gzy3OtOgkscCH0U7WkVkNCmy384uSWKOWojQjh7Q@mail.gmail.com>
	<d301996c-cac2-af60-90cb-219b48fcd9ad@aklaver.com>
	<CAHQ1jfdLBTH2MrtTp8dQbyLboQGh2aYtV+NCc4pobOpQW_v5LA@mail.gmail.com>
	<3b9c9577-8ff8-92f3-4e9f-6600770b938c@aklaver.com>
	<CAHQ1jfcfEcSRAVeRBtP-byg5DLe8YrzKX-1eQNnPjKtExejtxA@mail.gmail.com>
	<6dc19634-8441-b14e-5bb7-4491011da8df@aklaver.com>
	<CAHQ1jffJvFrF9yCNTB3-_CPpUF8YMrC-UDV5ZAFngDsFEh+uiA@mail.gmail.com>
	<390d91e2-762d-5a8e-97ac-a645dc0dc271@aklaver.com>
	<CAHQ1jfcYFTOmE+zCJ1EWLnZp9D=ajEy6HWRzOF5nXuqVVAvJfw@mail.gmail.com>

On 5/14/23 13:04, FOUTE K. Jaurès wrote:
> 
> 
> Le dim. 14 mai 2023 à 16:12, Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> a écrit :

> 
>     Not what was requested.
> 
>     In the post linked to here:
> 
>     https://www.postgresql.org/message-id/CAHQ1jffWF7Y8c1X7EK3JvbLJgw1GEcVk0uPa3%2B0CJo4h8PFHVw%40mail.g... <https://www.postgresql.org/message-id/CAHQ1jffWF7Y8c1X7EK3JvbLJgw1GEcVk0uPa3%2B0CJo4h8PFHVw%40mail.g...;
> 
>     there was an image of the result of:
> 
>     SELECT cron.schedule( 'TEST','30 seconds', $$SELECT 1$$);
> 
>     Provide that result as text.
> 
> jobid |  schedule  | command  | nodename  | nodeport |                 
>   database                  | username | active | jobname
> -------+------------+----------+-----------+----------+--------------------------------------------+----------+--------+---------
>       8 | 30 seconds | SELECT 1 | localhost |     5692 | databasename | 
> postgres | t      | TEST
> (1 row)

That is not the same result as in the image, it had additional fields: 
runid, job_pid, status, return_message, start_time.

Also the database field had not been edited. In the original image it 
looks like there was multiple databases named. From what I understand of 
pg_cron a job can only run on one database at a time.

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (14+ messages)  latest in thread

Message-ID: <c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@aklaver.com>
Permalink:  ../c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@aklaver.com/
Also on:    postgresql.org/message-id/c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@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, jauresfoute@gmail.com, fpjbito@gmail.com
  Subject: Re: PG_Cron - Error Message Connection failed
  In-Reply-To: <c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@aklaver.com>
  References: <CAHQ1jffWF7Y8c1X7EK3JvbLJgw1GEcVk0uPa3+0CJo4h8PFHVw@mail.gmail.com> <CAJDTwK1M9XCP2dGA_Vq0Cpbi92VbUSxFypMU0esiJ6iVLe6y9w@mail.gmail.com> <CAHQ1jffs1+Gzy3OtOgkscCH0U7WkVkNCmy384uSWKOWojQjh7Q@mail.gmail.com> <d301996c-cac2-af60-90cb-219b48fcd9ad@aklaver.com> <CAHQ1jfdLBTH2MrtTp8dQbyLboQGh2aYtV+NCc4pobOpQW_v5LA@mail.gmail.com> <3b9c9577-8ff8-92f3-4e9f-6600770b938c@aklaver.com> <CAHQ1jfcfEcSRAVeRBtP-byg5DLe8YrzKX-1eQNnPjKtExejtxA@mail.gmail.com> <6dc19634-8441-b14e-5bb7-4491011da8df@aklaver.com> <CAHQ1jffJvFrF9yCNTB3-_CPpUF8YMrC-UDV5ZAFngDsFEh+uiA@mail.gmail.com> <390d91e2-762d-5a8e-97ac-a645dc0dc271@aklaver.com> <CAHQ1jfcYFTOmE+zCJ1EWLnZp9D=ajEy6HWRzOF5nXuqVVAvJfw@mail.gmail.com> <c2c0c2b0-dd83-4dcf-0d3e-dccb65b8ec81@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