Re: Looking for a linux tool to automate PG admin tasks

From: Keith Christian <keith1christian(at)gmail(dot)com>
To: Jean-Christophe Boggio <postgresql(at)thefreecat(dot)org>
Cc: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Looking for a linux tool to automate PG admin tasks
Date: 2025-10-16 13:24:12
Message-ID: CAFWoy7FrE1CB+oTbhcpdzMfQ81AxzJjwXXqxKt-zD314T6C9PA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Expect comes to mind.
I've automated many CLI based systems with it.
------Keith

On Thu, Oct 16, 2025, 07:17 Jean-Christophe Boggio <
postgresql(at)thefreecat(dot)org> wrote:

> Hello,
> I have several servers with many databases on them for different
> applications.
> I need to execute some tasks on some databases depending on some criteria.
>
> For example, execute query xxx but only on databases where table
> public.sometable exists or if number of rows in table yyy is > 1M.
> Before reinventing the wheel with ugly bash scripts, do you know of some
> tools that would suit my case ?
> Some tasks will have to execute periodically (with crons probably) and
> others will be one-off.
> CLI tools if possible because I'm working remotely on those servers of
> course.
> Thanks,
> JC
>
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message hubert depesz lubaczewski 2025-10-16 13:46:13 Re: Looking for a linux tool to automate PG admin tasks
Previous Message Jean-Christophe Boggio 2025-10-16 13:17:16 Looking for a linux tool to automate PG admin tasks