Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9NrC-00HBao-ER for pgsql-admin@arkaria.postgresql.org; Thu, 16 Oct 2025 13:17:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9Nr9-00Crep-NA for pgsql-admin@arkaria.postgresql.org; Thu, 16 Oct 2025 13:17:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with utf8esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9Nr9-00Crea-C2 for pgsql-admin@lists.postgresql.org; Thu, 16 Oct 2025 13:17:22 +0000 Received: from facteur.thefreecat.org ([212.129.38.6]) by makus.postgresql.org with utf8esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v9Nr6-0026B9-05 for pgsql-admin@lists.postgresql.org; Thu, 16 Oct 2025 13:17:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thefreecat.org; s=thefreecat; t=1760620636; bh=boxMHAlrqo44rmHeIi4h3JxENwLhl/LRXgMC/8VAFKk=; h=Date:To:From:Subject; b=AzqyIsVE70nRUfwmJiB68XzddDsgOsQUtytqwdkPaUvIQFqIuUmRhY+Lg5b6MocgD a9Qdo88ogFCJ8uajllqn67CedV9+Aav9p4oKGK12UmiXVC1V4McOppcNlqIxGmWnhS 8znGWc4ffkrIKqDV/l5TPuD3Ilpy7XVcPEx+WsbG+AUHSzwcii0xl2pjkYIEJ Original-Subject: Looking for a linux tool to automate PG admin tasks Original-From: Jean-Christophe Boggio Received: from [192.168.1.182] (91-167-190-143.subs.proxad.net [::ffff:91.167.190.143]) (AUTH: LOGIN cat, TLS: TLS1.3,128bits,ECDHE_RSA_AES_128_GCM_SHA256) by facteur.thefreecat.org with ESMTPSA id 0000000009DC06EB.0000000068F0F05C.00362F4A; Thu, 16 Oct 2025 15:17:16 +0200 Message-ID: Date: Thu, 16 Oct 2025 15:17:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, fr To: pgsql-admin From: Jean-Christophe Boggio Subject: Looking for a linux tool to automate PG admin tasks Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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