public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Murthy Nunna <[email protected]>
To: [email protected] <[email protected]>
To: David G. Johnston <[email protected]>
Subject: Re: psql help
Date: Thu, 4 Jul 2024 21:25:25 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <DM8PR09MB66770B55E691C9685E5B5F7BB8DF2@DM8PR09MB6677.namprd09.prod.outlook.com>
References: <DM8PR09MB6677C5B4FDBDFC0F82298DC7B8DE2@DM8PR09MB6677.namprd09.prod.outlook.com>
<CAKFQuwaYLtg0W4He0VGfqSTKSj+69sSq_5esqBVTHwSrPfMLmw@mail.gmail.com>
<DM8PR09MB66770B55E691C9685E5B5F7BB8DF2@DM8PR09MB6677.namprd09.prod.outlook.com>
On 7/4/24 20:54, Murthy Nunna wrote:
> Sorry, there is no problem with the following statement and the
> environment variable. It works fine. But it terminates only one PID due
> to LIMIT 1. I want to terminate all pids that meet this criteria. If I
> remove LIMIT 1, pg_terminate_backend(pid) will not work as it expects
> only one pid at a time. So, the question is how to rewrite this psql so
> it loops through all pids one pid at a time? Thanks in advance for your
> help.
From here:
https://www.postgresql.org/docs/current/app-psql.html
See:
\gexec
--
Adrian Klaver
[email protected]
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: psql help
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox