Re: pgAgent for multiple databases in same instance

From: Sandeep Saxena <sandeep(dot)lko(at)gmail(dot)com>
To: Adam Brusselback <adambrusselback(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgAgent for multiple databases in same instance
Date: 2021-03-11 08:50:48
Message-ID: CAA3fARE6NSgs0CqrqJfPiX9KhshrC-yyNuDK6mj2FDn+YJFd+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 submit
job from front end so we have procedures to do that submit job operation so
if i understand your explanation correctly.

I should install pgAgent only on one db like edb or postgres db and create
db link in other db's to connect to it to submit jobs in it as those jobs
will be for different db's.

In this case it will be only one pgAgent instance ,so from architecture
point of view does it make sense to you.

Regards,
Sandeep

On Wed, Mar 10, 2021 at 3:16 PM Adam Brusselback <adambrusselback(at)gmail(dot)com>
wrote:

> 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 only able to connect to a single "db" at a time, so you
> are correct you'd need to run multiple agents (connected to the different
> db's) to have things work as you intended.
>
> What is the reason for creating the pgagent extensions in multiple
> databases? The extension itself is the storage / logs / job definition, so
> each extra one is totally detached from the rest. You can still use a
> single pgagent install to connect to many databases to do work, so I am
> just not sure why you'd need multiple.
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-03-11 09:18:07 Re: WAL-files is not removing authomaticaly
Previous Message Andrew Anderson 2021-03-11 07:43:19 Re: WAL-files is not removing authomaticaly