From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Olarte <folarte@peoplecall.com>
Cc: rodrigo_de_carlos@yahoo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
Date: Thu, 24 Jan 2019 10:03:12 -0500
Message-ID: <17021.1548342192@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+bJJby_BxDuGDxtYJbBRDsvvxatvpOCF8t2FN9Pof0SahiZKA@mail.gmail.com>
References: <007901d4b3c3$d6544ab0$82fce010$@yahoo.com>
<CA+bJJby_BxDuGDxtYJbBRDsvvxatvpOCF8t2FN9Pof0SahiZKA@mail.gmail.com>
Francisco Olarte <folarte@peoplecall.com> writes:
> On Thu, Jan 24, 2019 at 10:33 AM <rodrigo_de_carlos@yahoo.com> wrote:
>> I used the \watch option in psql and couldn’t stop the loop until I found the way* using ctrl-c. I am new to programming, and perhaps using ctrl-c is standard practice, but in a future manual perhaps you should replace the text below ‘until interrupted’ with ‘until interrupted (using ctrl-c)’.
> Ctrl-C, AFAIK, sends the INT(errupt) signal in *ix, which normally
> stops looping things. That's the standard way to interrupt long
> running commands, send them the interrupt signal.
> IIRC windows does similar stuff, although I think Ctrl-break had to be
> used, but I haven't used it since the dawn of the century.
Yeah, the reason that the message doesn't already mention control-c
is that the interrupt signal varies depending on platform (also,
it's possible to remap it to some other key, on most platforms).
In the end we expect you to know that much about whatever environment
you're using.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, folarte@peoplecall.com, rodrigo_de_carlos@yahoo.com
Subject: Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
In-Reply-To: <17021.1548342192@sss.pgh.pa.us>
References: <007901d4b3c3$d6544ab0$82fce010$@yahoo.com> <CA+bJJby_BxDuGDxtYJbBRDsvvxatvpOCF8t2FN9Pof0SahiZKA@mail.gmail.com> <17021.1548342192@sss.pgh.pa.us>
* 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