From: John Scalia <jayknowsunix@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Automating removal of orphaned stored procedure calls
Date: Tue, 12 Jul 2022 12:58:34 -0400
Message-ID: <60D4E7CB-BA42-4203-A5EF-9E5FA4D7CAE3@gmail.com> (raw)
One of our newer applications is regularly leaving some stored procedures in a partially completed state. It’s not one of my applications, and the DBA responsible for it hasn’t said why this happens, but he is trying to automate removing these. Currently, it’s a manual process where they log into the db as the application owner which owns these and remove them manually. For whatever reason he can’t use the application owner’s I’d to run this process. I suggested adding the application owner as a group for the actual user he is going to use, and once that happened, using a SET ROLE to become that user, but it did not apparently work. Anybody have any good ideas here to make this work?
Sent from my iPad
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jayknowsunix@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Automating removal of orphaned stored procedure calls
In-Reply-To: <60D4E7CB-BA42-4203-A5EF-9E5FA4D7CAE3@gmail.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